Skip to content

Commit

Permalink
Remove nuisance errors written to log when add-in opens without any s…
Browse files Browse the repository at this point in the history
…catterplot windows open yet.
  • Loading branch information
himanga committed Sep 3, 2019
1 parent f731c19 commit 3001634
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/addin.def
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
id=com.github.himanga.JMP3DPlotTools
name=3D Plot Tools
supportJmpSE=0
addinVersion=1.1
addinVersion=1.2
minJmpVersion=13
host=Win
14 changes: 8 additions & 6 deletions src/main.jsl
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@ GetScatterplot = function( {},
//get scatterplot
//sp = ((s3dwins[min(selIndex)] << Find(OutlineBox(1))) << Get Scriptable Object);
sp = ((s3dwins[selIndex] << Find(OutlineBox(1))) << Get Scriptable Object);
{ gx, gy, gz } = (sp[1] << Frame3d( Get Rotation( ) ) );
neb_x << Set( gx );
neb_y << Set( gy );
neb_z << Set( gz );
);
{ gx, gy, gz } = (sp[1] << Frame3d( Get Rotation( ) ) );
neb_x << Set( gx );
neb_y << Set( gy );
neb_z << Set( gz );
);

//Update the user interface with the current list of 3D windows
Expand All @@ -71,8 +71,10 @@ RefreshWindows = function( {},
wins = Window()
);
s3dwins = filter( wins, Expr( checkifs3d ) );
lbWin << Set Items( s3dwins << Get Window Title );
if(N Items(s3dwins) > 0, lbWin << Set Selected( 1 ) );
if( N Items(s3dwins) > 0,
lbWin << Set Items( s3dwins << Get Window Title );
lbWin << Set Selected( 1 )
);
);

//Create a blank white image
Expand Down

1 comment on commit 3001634

@himanga
Copy link
Owner Author

@himanga himanga commented on 3001634 Sep 3, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Resolves #7

Please sign in to comment.