summaryrefslogtreecommitdiffstats
path: root/src/ui/tool/path-manipulator.cpp
diff options
context:
space:
mode:
authorKrzysztof Kosi??ski <tweenk.pl@gmail.com>2010-10-12 16:22:08 +0000
committerKrzysztof KosiƄski <tweenk.pl@gmail.com>2010-10-12 16:22:08 +0000
commitf827618fbfb446bcd954281fd46b5e88090590cf (patch)
treecaeae4259cf06ddfdbbdc81d3325dbdf4aedf456 /src/ui/tool/path-manipulator.cpp
parentCherry pick node duplication from 0.48 stable (diff)
downloadinkscape-f827618fbfb446bcd954281fd46b5e88090590cf.tar.gz
inkscape-f827618fbfb446bcd954281fd46b5e88090590cf.zip
Fix oddities related to smooth endnodes. Should fix a crasher.
(bzr r9826)
Diffstat (limited to 'src/ui/tool/path-manipulator.cpp')
-rw-r--r--src/ui/tool/path-manipulator.cpp12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/ui/tool/path-manipulator.cpp b/src/ui/tool/path-manipulator.cpp
index 81fc336ce..41be81d4f 100644
--- a/src/ui/tool/path-manipulator.cpp
+++ b/src/ui/tool/path-manipulator.cpp
@@ -1325,17 +1325,11 @@ bool PathManipulator::_nodeClicked(Node *n, GdkEventButton *event)
return true;
} else if (held_control(*event)) {
// Ctrl+click: cycle between node types
- if (n->isEndNode()) {
- if (n->type() == NODE_CUSP) {
- n->setType(NODE_SMOOTH);
- } else {
- n->setType(NODE_CUSP);
- }
- } else {
+ if (!n->isEndNode()) {
n->setType(static_cast<NodeType>((n->type() + 1) % NODE_LAST_REAL_TYPE));
+ update();
+ _commit(_("Cycle node type"));
}
- update();
- _commit(_("Cycle node type"));
return true;
}
return false;