]> git.gag.com Git - debian/openrocket/blobdiff - src/net/sf/openrocket/rocketcomponent/Configuration.java
Updates for 0.9.5
[debian/openrocket] / src / net / sf / openrocket / rocketcomponent / Configuration.java
index c1338231846d8682ebfd5a04890712917b8fd4bc..88fb6d8aa81651b51f803e11e014c41d6cf5a876 100644 (file)
@@ -13,6 +13,7 @@ import javax.swing.event.ChangeEvent;
 import javax.swing.event.ChangeListener;
 import javax.swing.event.EventListenerList;
 
+import net.sf.openrocket.util.BugException;
 import net.sf.openrocket.util.ChangeSource;
 import net.sf.openrocket.util.Coordinate;
 import net.sf.openrocket.util.MathUtil;
@@ -193,7 +194,7 @@ public class Configuration implements Cloneable, ChangeSource, ComponentChangeLi
        }
        
        public String getMotorConfigurationDescription() {
-               return rocket.getMotorConfigurationDescription(motorConfiguration);
+               return rocket.getMotorConfigurationNameOrDescription(motorConfiguration);
        }
        
        
@@ -393,7 +394,7 @@ public class Configuration implements Cloneable, ChangeSource, ComponentChangeLi
                        rocket.addComponentChangeListener(config);
                        return config;
                } catch (CloneNotSupportedException e) {
-                       throw new RuntimeException("BUG: clone not supported!",e);
+                       throw new BugException("BUG: clone not supported!",e);
                }
        }