Skip to content

Commit

Permalink
fix FS#1399 - Exception when offsetting full ellipses
Browse files Browse the repository at this point in the history
  • Loading branch information
qcad committed Mar 21, 2016
1 parent facb450 commit 06d5919
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion scripts/ShapeAlgorithms.js
Expand Up @@ -452,7 +452,13 @@ ShapeAlgorithms.getOffsetEllipses = function(shape, distance, number, sidePositi
}

if (isFullEllipseShape(shape)) {
spl.setPeriodic(true);
if (isSplineShape(spl)) {
spl.setPeriodic(true);
}
else {
// no ellipse proxy: offset curve is polyline:
spl.setClosed(true);
}
}

ret.push(spl);
Expand Down

0 comments on commit 06d5919

Please sign in to comment.