Skip to content

Commit

Permalink
Fix not setting the roi slice position
Browse files Browse the repository at this point in the history
  • Loading branch information
LauLauThom committed Jun 18, 2020
1 parent a53c4ca commit b35a340
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Fiji.app/macros/toolsets/Roi 1-Click Tools.ijm
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ function goNextSlice(){
}
function roiActions(){
if (addToManager){
roiManager("Associate", "true"); // associate ROI with slice
roiManager("Associate", "true"); // associate ROI with slice (this does not set the Roi position though)
roiManager("Show All with labels");
}
}
Expand Down Expand Up @@ -113,6 +113,7 @@ function getDefaultOptions(){
/* Default actions, in this order: AddToManager, runMeasure, nextSlice, customAction and select None */
// Issue with stack and extra command crop : if NextSlice then crop, wrong
function defaultActions(){
if (nSlices>1) Roi.setPosition(getSliceNumber()); // important otherwise the roi have position None
if (addToManager) roiManager("Add");
if (runMeasure) run("Measure");

Expand Down

0 comments on commit b35a340

Please sign in to comment.