diff options
| author | Maximilian Albert <maximilian.albert@gmail.com> | 2008-08-18 00:43:27 +0000 |
|---|---|---|
| committer | cilix42 <cilix42@users.sourceforge.net> | 2008-08-18 00:43:27 +0000 |
| commit | 1909760cc90de210792a98e8ae7aee7964fc0198 (patch) | |
| tree | 8a553eed21582ede3034e95219dc538ea7d22c49 /src/draw-context.cpp | |
| parent | Add button whether to display limiting bounding box; add 'all inactive' toggl... (diff) | |
| download | inkscape-1909760cc90de210792a98e8ae7aee7964fc0198.tar.gz inkscape-1909760cc90de210792a98e8ae7aee7964fc0198.zip | |
Switch back to all_inactive mode after applying a geometric LPE
(bzr r6674)
Diffstat (limited to 'src/draw-context.cpp')
| -rw-r--r-- | src/draw-context.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/draw-context.cpp b/src/draw-context.cpp index c8ce44872..6e641196b 100644 --- a/src/draw-context.cpp +++ b/src/draw-context.cpp @@ -34,6 +34,7 @@ #include "macros.h" #include "message-stack.h" #include "pen-context.h" +#include "lpe-tool-context.h" #include "prefs-utils.h" #include "selection.h" #include "selection-chemistry.h" @@ -381,6 +382,11 @@ spdc_check_for_and_apply_waiting_LPE(SPDrawContext *dc, SPItem *item) if (dc->waiting_LPE_type != INVALID_LPE) { Effect::createAndApply(dc->waiting_LPE_type, dc->desktop->doc(), item); dc->waiting_LPE_type = INVALID_LPE; + + if (SP_IS_LPETOOL_CONTEXT(dc)) { + // since a geometric LPE was applied, we switch back to "inactive" mode + lpetool_context_switch_mode(SP_LPETOOL_CONTEXT(dc), Inkscape::LivePathEffect::INVALID_LPE); + } } if (SP_IS_PEN_CONTEXT(dc)) { sp_pen_context_set_polyline_mode(SP_PEN_CONTEXT(dc)); |
