Skip to content

Commit

Permalink
Fix ROI manager usage in loops
Browse files Browse the repository at this point in the history
  • Loading branch information
ppouchin committed Nov 5, 2023
1 parent 951ff7b commit b7ae3aa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/fr/igred/ij/macro/OMEROBatchRunner.java
Original file line number Diff line number Diff line change
Expand Up @@ -498,11 +498,11 @@ private void runMacro() {
String property = ROIWrapper.IJ_PROPERTY;
WindowManager.closeAllWindows();

// Initialize ROI Manager
initRoiManager();

int index = 0;
for (BatchImage image : images) {
// Initialize ROI Manager
initRoiManager();

//noinspection HardcodedFileSeparator
setProgress("Image " + (index + 1) + "/" + images.size());
setState("Opening image...");
Expand Down

0 comments on commit b7ae3aa

Please sign in to comment.