From: Bill Kuker Date: Sat, 6 Nov 2010 21:27:25 +0000 (+0000) Subject: (no commit message) X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=59bd114785b59b2f374aa58e39294ad5ad153a2a;p=sw%2Fmotorsim --- diff --git a/gui/com/billkuker/rocketry/motorsim/visual/HardwarePanel.java b/gui/com/billkuker/rocketry/motorsim/visual/HardwarePanel.java index 00e1fa5..7e95aa3 100644 --- a/gui/com/billkuker/rocketry/motorsim/visual/HardwarePanel.java +++ b/gui/com/billkuker/rocketry/motorsim/visual/HardwarePanel.java @@ -55,7 +55,7 @@ public class HardwarePanel extends JPanel { Shape c = chamber.chamberShape(); - Shape n = nozzle.nozzleShape(((CylindricalChamber)chamber).getID()); + Shape n = nozzle.nozzleShape(Amount.valueOf(c.getBounds().getWidth(), SI.MILLIMETER)); Rectangle cb = c.getBounds(); Rectangle nb = n.getBounds();