summaryrefslogtreecommitdiffstats
path: root/src/ui/tool/path-manipulator.cpp
diff options
context:
space:
mode:
authorAlvin Penner <penner@vaxxine.com>2014-12-15 19:58:43 +0000
committerapenner <penner@vaxxine.com>2014-12-15 19:58:43 +0000
commit4c1b90b91ba818395843ad56331c5343ebe9018a (patch)
treed777ec617dc99d5a5a0191ee289aed4bd876fdf0 /src/ui/tool/path-manipulator.cpp
parentC++ify SPMarkerView (diff)
downloadinkscape-4c1b90b91ba818395843ad56331c5343ebe9018a.tar.gz
inkscape-4c1b90b91ba818395843ad56331c5343ebe9018a.zip
when inserting a node, the endpoints cannot be symmetric nodes. (Bug 1367443)
Fixed bugs: - https://launchpad.net/bugs/1367443 (bzr r13800)
Diffstat (limited to 'src/ui/tool/path-manipulator.cpp')
-rw-r--r--src/ui/tool/path-manipulator.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ui/tool/path-manipulator.cpp b/src/ui/tool/path-manipulator.cpp
index 8b99c33b8..9108dff29 100644
--- a/src/ui/tool/path-manipulator.cpp
+++ b/src/ui/tool/path-manipulator.cpp
@@ -972,6 +972,10 @@ NodeList::iterator PathManipulator::subdivideSegment(NodeList::iterator first, d
NodeList &list = NodeList::get(first);
NodeList::iterator second = first.next();
if (!second) throw std::invalid_argument("Subdivide after last node in open path");
+ if (first->type() == NODE_SYMMETRIC)
+ first->setType(NODE_SMOOTH, false);
+ if (second->type() == NODE_SYMMETRIC)
+ second->setType(NODE_SMOOTH, false);
// We need to insert the segment after 'first'. We can't simply use 'second'
// as the point of insertion, because when 'first' is the last node of closed path,