diff --git a/core/src/net/sf/openrocket/rocketcomponent/FinSet.java b/core/src/net/sf/openrocket/rocketcomponent/FinSet.java index d3f124131..37b2663cf 100644 --- a/core/src/net/sf/openrocket/rocketcomponent/FinSet.java +++ b/core/src/net/sf/openrocket/rocketcomponent/FinSet.java @@ -1095,6 +1095,13 @@ public abstract class FinSet extends ExternalComponent implements RingInstanceab xCur += increment; } + + // correct last point, if beyond a rounding error from body's end. + final int lastIndex = points.length - 1; + if( body.getLength()-0.000001 < points[lastIndex].x) { + points[lastIndex] = points[lastIndex].setX(body.getLength()).setY(body.getAftRadius()); + } + return points; }