Merge commit '42b2e5ca519766e37ce6941ba4faecc9691cc403' into upstream
[debian/openrocket] / core / src / net / sf / openrocket / rocketcomponent / FinSet.java
index 5e40810b4749fc1268648d7d9da484a049c7e3b1..4b8d58058cb98232e147b516f83ec538139481ea 100644 (file)
@@ -7,6 +7,7 @@ import java.util.List;
 
 import net.sf.openrocket.l10n.Translator;
 import net.sf.openrocket.startup.Application;
+import net.sf.openrocket.util.ArrayUtils;
 import net.sf.openrocket.util.Coordinate;
 import net.sf.openrocket.util.MathUtil;
 import net.sf.openrocket.util.Transformation;
@@ -675,7 +676,7 @@ public abstract class FinSet extends ExternalComponent {
                double y = -getTabHeight();
                
                int n = points.length;
-               points = Arrays.copyOf(points, points.length + 4);
+               points = ArrayUtils.copyOf(points, points.length + 4);
                points[n] = new Coordinate(x2, 0);
                points[n + 1] = new Coordinate(x2, y);
                points[n + 2] = new Coordinate(x1, y);