summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLiam P. White <inkscapebronyat-signgmaildotcom>2014-04-01 22:38:26 +0000
committerLiam P. White <inkscapebronyat-signgmaildotcom>2014-04-01 22:38:26 +0000
commit355bfa5bf4d51f9d8c3fddf910a73ec7958d9a8a (patch)
tree280bc96ef7eca745e52f21a7cb1e4ade080fafe5
parentUpdate to trunk (diff)
downloadinkscape-355bfa5bf4d51f9d8c3fddf910a73ec7958d9a8a.tar.gz
inkscape-355bfa5bf4d51f9d8c3fddf910a73ec7958d9a8a.zip
Fix bug 1219324
(bzr r13090.1.40)
-rw-r--r--src/sp-lpe-item.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/sp-lpe-item.cpp b/src/sp-lpe-item.cpp
index 666c79e49..6324af147 100644
--- a/src/sp-lpe-item.cpp
+++ b/src/sp-lpe-item.cpp
@@ -36,6 +36,10 @@
#include "desktop.h"
#include "shape-editor.h"
#include "sp-ellipse.h"
+#include "tools-switch.h"
+#include "ui/tools/node-tool.h"
+#include "ui/tools/tool-base.h"
+#include "ui/tool/multi-path-manipulator.h"
#include <algorithm>
@@ -416,6 +420,17 @@ void SPLPEItem::addPathEffect(gchar *value, bool reset)
// Apply the path effect
sp_lpe_item_update_patheffect(this, true, true);
+
+ //fix bug 1219324
+ Inkscape::UI::Tools::NodeTool *tool = 0;
+ if (SP_ACTIVE_DESKTOP ) {
+ Inkscape::UI::Tools::ToolBase *ec = SP_ACTIVE_DESKTOP->event_context;
+ if (INK_IS_NODE_TOOL(ec)) {
+ tool = static_cast<Inkscape::UI::Tools::NodeTool*>(ec);
+ tools_switch(SP_ACTIVE_DESKTOP, TOOLS_LPETOOL); //mhh
+ tools_switch(SP_ACTIVE_DESKTOP, TOOLS_NODES);
+ }
+ }
}
}