major optimization updates
[debian/openrocket] / src / net / sf / openrocket / gui / plot / PlotConfiguration.java
index 931227364cb36b66f776411ac8479bcd72e66c45..bd58782f70b9de073c18412ea3bb42ec319ca65f 100644 (file)
@@ -19,7 +19,7 @@ import net.sf.openrocket.util.Pair;
 public class PlotConfiguration implements Cloneable {
        
        private static final Translator trans = Application.getTranslator();
-
+       
        public static final PlotConfiguration[] DEFAULT_CONFIGURATIONS;
        static {
                ArrayList<PlotConfiguration> configs = new ArrayList<PlotConfiguration>();
@@ -676,7 +676,7 @@ public class PlotConfiguration implements Cloneable {
                                continue;
                        
                        double d = (max - min) / axis.getRangeLength();
-                       d = Math.sqrt(d); // Prioritize small ranges
+                       d = MathUtil.safeSqrt(d); // Prioritize small ranges
                        goodness += d * 100.0;
                }