From 26f6473446ea7765c7d2e25108491b21be2c7a34 Mon Sep 17 00:00:00 2001 From: SiboVG Date: Thu, 30 Mar 2023 11:44:00 +0200 Subject: [PATCH] Fix set launch rod length & launch into wind not triggering change event --- core/src/net/sf/openrocket/simulation/SimulationOptions.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/src/net/sf/openrocket/simulation/SimulationOptions.java b/core/src/net/sf/openrocket/simulation/SimulationOptions.java index d4c3a5982..19c769903 100644 --- a/core/src/net/sf/openrocket/simulation/SimulationOptions.java +++ b/core/src/net/sf/openrocket/simulation/SimulationOptions.java @@ -96,6 +96,7 @@ public class SimulationOptions implements ChangeSource, Cloneable { if (MathUtil.equals(this.launchRodLength, launchRodLength)) return; this.launchRodLength = launchRodLength; + fireChangeEvent(); } @@ -104,7 +105,10 @@ public class SimulationOptions implements ChangeSource, Cloneable { } public void setLaunchIntoWind(boolean i) { + if (launchIntoWind == i) + return; launchIntoWind = i; + fireChangeEvent(); } public double getLaunchRodAngle() {