diff --git a/plugins/HoloScan.java b/plugins/HoloScan.java index 7527a59a..417f29f9 100644 --- a/plugins/HoloScan.java +++ b/plugins/HoloScan.java @@ -53,7 +53,7 @@ public class HoloScan extends Panel { } try{ spinnerFromTheta.setModel(new SpinnerNumberModel(Math.max(theta.getMinValue(),(Double)spinnerFromTheta.getValue()), theta.getMinValue(), theta.getMaxValue(), 1.0)); - spinnerToTheta.setModel(new SpinnerNumberModel(Math.min(theta.getMaxValue(),(Double)spinnerFromTheta.getValue()), theta.getMinValue(), theta.getMaxValue(), 1.0)); + spinnerToTheta.setModel(new SpinnerNumberModel(Math.min(theta.getMaxValue(),(Double)spinnerToTheta.getValue()), theta.getMinValue(), theta.getMaxValue(), 1.0)); } catch (Exception ex){ spinnerFromTheta.setModel(new SpinnerNumberModel(theta.getMinValue(), theta.getMinValue(), theta.getMaxValue(), 1.0)); spinnerToTheta.setModel(new SpinnerNumberModel(theta.getMaxValue(), theta.getMinValue(), theta.getMaxValue(), 1.0));