diff options
| author | Krzysztof Kosi??ski <tweenk.pl@gmail.com> | 2010-10-12 16:11:17 +0000 |
|---|---|---|
| committer | Krzysztof KosiĆski <tweenk.pl@gmail.com> | 2010-10-12 16:11:17 +0000 |
| commit | 285f551658271fde028b389f7b1abe35e65c6659 (patch) | |
| tree | e703eda0b82adf120db266ac05adf13561db7e91 /src/ui/tool/multi-path-manipulator.cpp | |
| parent | fix misunderstood path-closed-flag in LWPOLYLINE (Bug 656899) (diff) | |
| download | inkscape-285f551658271fde028b389f7b1abe35e65c6659.tar.gz inkscape-285f551658271fde028b389f7b1abe35e65c6659.zip | |
Cherry pick node duplication from 0.48 stable
(bzr r9825)
Diffstat (limited to 'src/ui/tool/multi-path-manipulator.cpp')
| -rw-r--r-- | src/ui/tool/multi-path-manipulator.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/ui/tool/multi-path-manipulator.cpp b/src/ui/tool/multi-path-manipulator.cpp index 2025a12d7..6101a3556 100644 --- a/src/ui/tool/multi-path-manipulator.cpp +++ b/src/ui/tool/multi-path-manipulator.cpp @@ -244,6 +244,12 @@ void MultiPathManipulator::insertNodes() _done(_("Add nodes")); } +void MultiPathManipulator::duplicateNodes() +{ + invokeForAll(&PathManipulator::duplicateNodes); + _done(_("Duplicate nodes")); +} + void MultiPathManipulator::joinNodes() { invokeForAll(&PathManipulator::hideDragPoint); @@ -513,6 +519,12 @@ bool MultiPathManipulator::event(GdkEvent *event) return true; } break; + case GDK_d: + case GDK_D: + if (held_only_shift(event->key)) { + duplicateNodes(); + return true; + } case GDK_j: case GDK_J: if (held_only_shift(event->key)) { |
