From 78a315409a9172e018bdb3efd79162e7c6ef0c2d Mon Sep 17 00:00:00 2001 From: Billy Olsen Date: Sun, 26 Jul 2020 19:56:14 -0700 Subject: [PATCH] Check rocketBounds.isEmpty() rather than activeStages for length When no components are added, a rocket is showing -INFINITY for the length. This is because the special case for length 0 is checking for active stages, instead check the rocketBounds.isEmpty() to see if any bounds have been added. Fixes #714 Signed-off-by: Billy Olsen --- .../sf/openrocket/rocketcomponent/FlightConfiguration.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/core/src/net/sf/openrocket/rocketcomponent/FlightConfiguration.java b/core/src/net/sf/openrocket/rocketcomponent/FlightConfiguration.java index 02d109b32..507b5a00d 100644 --- a/core/src/net/sf/openrocket/rocketcomponent/FlightConfiguration.java +++ b/core/src/net/sf/openrocket/rocketcomponent/FlightConfiguration.java @@ -564,7 +564,6 @@ public class FlightConfiguration implements FlightConfigurableParameter