diff options
| author | Tavmjong Bah <tavmjong@free.fr> | 2014-05-09 08:46:15 +0000 |
|---|---|---|
| committer | tavmjong-free <tavmjong@free.fr> | 2014-05-09 08:46:15 +0000 |
| commit | 6f43db26b0b07cf96664ba2bfbeeb1d622ecd14f (patch) | |
| tree | ad088651637edf691a57860c519a751a8a26d8fb /src/ui/tool/multi-path-manipulator.cpp | |
| parent | Style rewrite: prevent crash when fill/stroke set to "currentColor". (diff) | |
| parent | Merging Jabier's spirolive+bspline branch (diff) | |
| download | inkscape-6f43db26b0b07cf96664ba2bfbeeb1d622ecd14f.tar.gz inkscape-6f43db26b0b07cf96664ba2bfbeeb1d622ecd14f.zip | |
Update to tip.
(bzr r13341.1.2)
Diffstat (limited to 'src/ui/tool/multi-path-manipulator.cpp')
| -rw-r--r-- | src/ui/tool/multi-path-manipulator.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/ui/tool/multi-path-manipulator.cpp b/src/ui/tool/multi-path-manipulator.cpp index 65987ad52..68aaa77a5 100644 --- a/src/ui/tool/multi-path-manipulator.cpp +++ b/src/ui/tool/multi-path-manipulator.cpp @@ -670,7 +670,18 @@ bool MultiPathManipulator::event(Inkscape::UI::Tools::ToolBase *event_context, G // a) del preserves shape, and control is not pressed // b) ctrl+del preserves shape (del_preserves_shape is false), and control is pressed // Hence xor - deleteNodes(del_preserves_shape ^ held_control(event->key)); + guint mode = prefs->getInt("/tools/freehand/pen/freehand-mode", 0); + + //if the trace is bspline ( mode 2) + if(mode==2){ + // is this correct ? + if(del_preserves_shape ^ held_control(event->key)) + deleteNodes(false); + else + deleteNodes(true); + } + else + deleteNodes(del_preserves_shape ^ held_control(event->key)); // Delete any selected gradient nodes as well event_context->deleteSelectedDrag(held_control(event->key)); |
