@@ -6790,8 +6790,6 @@ else if (name.equals("paste")) {
67906790 return 0.0 ;
67916791 } else if (name .equals ("hidden" )) {
67926792 return overlay !=null && imp .getHideOverlay ()?1.0 :0.0 ;
6793- } else if (name .equals ("setMinStrokeWidth" )) {
6794- return setMinStrokeWidth (imp , overlay );
67956793 } else if (name .equals ("addSelection" ) || name .equals ("addRoi" )) {
67966794 return overlayAddSelection (imp , overlay );
67976795 } else if (name .equals ("setPosition" )) {
@@ -7006,16 +7004,6 @@ private double getOverlayElementBounds(Overlay overlay) {
70067004 return Double .NaN ;
70077005 }
70087006
7009- private double setMinStrokeWidth (ImagePlus imp , Overlay overlay ) {
7010- double minStrokeWidth = getArg ();
7011- if (overlay ==null ) {
7012- overlay = new Overlay ();
7013- imp .setOverlay (overlay );
7014- }
7015- overlay .setMinStrokeWidth (minStrokeWidth );
7016- return Double .NaN ;
7017- }
7018-
70197007 double overlaySetPosition (Overlay overlay ) {
70207008 int c =0 , z =0 , t =0 ;
70217009 int nargs = 1 ;
@@ -7815,10 +7803,7 @@ private Variable doRoi() {
78157803 return new Variable (Colors .colorToString (color ));
78167804 }
78177805 ImagePlus imp = getImage ();
7818- if (name .equals ("setMinStrokeWidth" )) {
7819- setMinStrokeWidth (imp , imp .getOverlay ());
7820- return null ;
7821- } else if (name .equals ("paste" )) {
7806+ if (name .equals ("paste" )) {
78227807 interp .getParens ();
78237808 //IJ.log("paste: "+roiClipboard);
78247809 if (roiClipboard !=null )
@@ -7909,6 +7894,9 @@ else if (name.equals("remove")||name.equals("selectNone")) {
79097894 roi .setStrokeWidth (getArg ());
79107895 imp .draw ();
79117896 return null ;
7897+ } else if (name .equals ("setMinStrokeWidth" )) {
7898+ roi .setMinStrokeWidth (getArg ());
7899+ return null ;
79127900 } else if (name .equals ("getStrokeWidth" )) {
79137901 interp .getParens ();
79147902 return new Variable (roi .getStrokeWidth ());
0 commit comments