From 62874d4ac675353447ec4181e516b1588ed81a9f Mon Sep 17 00:00:00 2001 From: Jan Hansen <27991883+hansenjn@users.noreply.github.com> Date: Mon, 29 Jul 2024 10:03:25 -0700 Subject: [PATCH] handling empty macro options --- 2D Analyzer/src/main/java/motiQ2D/MotiQ_2D.java | 4 ++-- 3D Analyzer/src/main/java/motiQ3D/MotiQ_3D.java | 4 ++-- Thresholder/src/main/java/motiQ_thr/Thresholder.java | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/2D Analyzer/src/main/java/motiQ2D/MotiQ_2D.java b/2D Analyzer/src/main/java/motiQ2D/MotiQ_2D.java index d691f8b..ac6d3d7 100644 --- a/2D Analyzer/src/main/java/motiQ2D/MotiQ_2D.java +++ b/2D Analyzer/src/main/java/motiQ2D/MotiQ_2D.java @@ -117,8 +117,8 @@ public void run(String arg) { boolean showDialog = true; if (IJ.macroRunning() - || (Macro.getOptions() != null - && Macro.getOptions().length()>0)) { + && Macro.getOptions() != null + && Macro.getOptions().length()>0) { String macroOptions = Macro.getOptions().toLowerCase(); String temp; diff --git a/3D Analyzer/src/main/java/motiQ3D/MotiQ_3D.java b/3D Analyzer/src/main/java/motiQ3D/MotiQ_3D.java index 2dbca90..e7e8f07 100644 --- a/3D Analyzer/src/main/java/motiQ3D/MotiQ_3D.java +++ b/3D Analyzer/src/main/java/motiQ3D/MotiQ_3D.java @@ -122,8 +122,8 @@ public void run(String arg) { if (IJ.macroRunning() - || (Macro.getOptions() != null - && Macro.getOptions().length()>0)) { + && Macro.getOptions() != null + && Macro.getOptions().length()>0) { String macroOptions = Macro.getOptions().toLowerCase(); // IJ.log("Macro Options: " + macroOptions); diff --git a/Thresholder/src/main/java/motiQ_thr/Thresholder.java b/Thresholder/src/main/java/motiQ_thr/Thresholder.java index 1add2c3..56ce2ed 100644 --- a/Thresholder/src/main/java/motiQ_thr/Thresholder.java +++ b/Thresholder/src/main/java/motiQ_thr/Thresholder.java @@ -119,8 +119,8 @@ public void run(String arg) { boolean showDialog = true; if (IJ.macroRunning() - || (Macro.getOptions() != null - && Macro.getOptions().length()>0)) { + && Macro.getOptions() != null + && Macro.getOptions().length()>0) { String macroOptions = Macro.getOptions(); // IJ.log("Macro Options: " + macroOptions);