~danieljabailey/inkscape/arc_node_editor

« back to all changes in this revision

Viewing changes to src/ui/tool/path-manipulator.cpp

  • Committer: Daniel Bailey
  • Date: 2016-07-08 23:20:15 UTC
  • Revision ID: d@nielbailey.com-20160708232015-wapo28inaaxex2cr
fix bug where closing arc segment sometimes becomes as straight line

Show diffs side-by-side

added added

removed removed

Lines of Context:
1501
1501
        }
1502
1502
        if (subpath->closed()) {
1503
1503
            // Here we link the last and first node if the path is closed.
1504
 
            // If the last segment is Bezier, we add it.
1505
 
            if (!prev->front()->isDegenerate() || !subpath->begin()->back()->isDegenerate()) {
 
1504
            // If the last segment is Bezier or arc, we add it.
 
1505
            if (!prev->front()->isDegenerate() || !subpath->begin()->back()->isDegenerate()
 
1506
                || !prev->arc_rx()->isDegenerate() || !prev->arc_ry()->isDegenerate()) {
1506
1507
                build_segment(builder, prev.ptr(), subpath->begin().ptr());
1507
1508
            }
1508
1509
            // if that segment is linear, we just call closePath().