diff options
| author | Krzysztof Kosi??ski <tweenk.pl@gmail.com> | 2010-01-14 22:38:54 +0000 |
|---|---|---|
| committer | Krzysztof KosiĆski <tweenk.pl@gmail.com> | 2010-01-14 22:38:54 +0000 |
| commit | 4756aa99f5756a6cac199c1aae6c37514cf1c562 (patch) | |
| tree | 6bb3182cb7668bdeca18aeb1a82b9182873c51cd /src/ui/tool/path-manipulator.cpp | |
| parent | Remove "show transform handles" from prefs - no longer necessary (diff) | |
| download | inkscape-4756aa99f5756a6cac199c1aae6c37514cf1c562.tar.gz inkscape-4756aa99f5756a6cac199c1aae6c37514cf1c562.zip | |
Replace std::tr1::unordered_(map|set) with __gnu_cxx::hash_(map|set),
to work around broken headers in some GCC versions.
(bzr r8980)
Diffstat (limited to 'src/ui/tool/path-manipulator.cpp')
| -rw-r--r-- | src/ui/tool/path-manipulator.cpp | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/src/ui/tool/path-manipulator.cpp b/src/ui/tool/path-manipulator.cpp index 9889eb787..9eabd8992 100644 --- a/src/ui/tool/path-manipulator.cpp +++ b/src/ui/tool/path-manipulator.cpp @@ -1157,17 +1157,24 @@ bool PathManipulator::_nodeClicked(Node *n, GdkEventButton *event) { // cycle between node types on ctrl+click if (event->button != 1 || !held_control(*event)) return false; - if (n->isEndNode()) { - if (n->type() == NODE_CUSP) { - n->setType(NODE_SMOOTH); + /*if (held_alt(*event)) { + // TODO delete nodes with Ctrl+Alt+click + n->list()->erase(NodeList::get_iterator(n)); + update(); + _commit(_("Delete node")); + } else*/ { + if (n->isEndNode()) { + if (n->type() == NODE_CUSP) { + n->setType(NODE_SMOOTH); + } else { + n->setType(NODE_CUSP); + } } else { - n->setType(NODE_CUSP); + n->setType(static_cast<NodeType>((n->type() + 1) % NODE_LAST_REAL_TYPE)); } - } else { - n->setType(static_cast<NodeType>((n->type() + 1) % NODE_LAST_REAL_TYPE)); + update(); + _commit(_("Cycle node type")); } - update(); - _commit(_("Cycle node type")); return true; } |
