From 1c4bf57a0cd4f7313baaf4e2afdbc9947d1699b8 Mon Sep 17 00:00:00 2001 From: Wes Cravens Date: Wed, 23 Mar 2016 21:34:52 -0500 Subject: [PATCH] Fix massWithoutMotors: Put back changes lost while tinkering with IntelliJ --- .../net/sf/openrocket/gui/figureelements/RocketInfo.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/swing/src/net/sf/openrocket/gui/figureelements/RocketInfo.java b/swing/src/net/sf/openrocket/gui/figureelements/RocketInfo.java index 30032c1d5..f12d0ee2c 100644 --- a/swing/src/net/sf/openrocket/gui/figureelements/RocketInfo.java +++ b/swing/src/net/sf/openrocket/gui/figureelements/RocketInfo.java @@ -109,10 +109,14 @@ public class RocketInfo implements FigureElement { public void setDiameter(double diameter) { this.diameter = diameter; } - + public void setMass(double mass) { this.mass = mass; } + + public void setMassWithoutMotors(double mass) { + this.massWithoutMotors = mass; + } public void setWarnings(WarningSet warnings) { this.warnings = warnings.clone(); @@ -164,7 +168,7 @@ public class RocketInfo implements FigureElement { g2.drawGlyphVector(name, x1, y1); g2.drawGlyphVector(lengthLine, x1, y1+line); - g2.drawGlyphVector(massLine, x1, y1+2*line); + g2.drawGlyphVector(massLineWithoutMotors, x1, y1+2*line); if( configuration.hasMotors() ) { //// Mass with motors