From 8171b3f6ffaabe434dcf4802d984f90e58da4f52 Mon Sep 17 00:00:00 2001 From: "Liam P. White" Date: Fri, 25 Apr 2014 13:59:30 -0700 Subject: Fix for on-canvas LPE controls to display immediately. Fixed bugs: - https://launchpad.net/bugs/1219324 (bzr r13306) --- src/sp-lpe-item.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src') diff --git a/src/sp-lpe-item.cpp b/src/sp-lpe-item.cpp index 7dd14f5d9..6e58f7cd4 100644 --- a/src/sp-lpe-item.cpp +++ b/src/sp-lpe-item.cpp @@ -16,6 +16,8 @@ # include "config.h" #endif +#include "ui/tool/multi-path-manipulator.h" + #include #include "live_effects/effect.h" @@ -36,6 +38,9 @@ #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 @@ -417,6 +422,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(ec); + tools_switch(SP_ACTIVE_DESKTOP, TOOLS_LPETOOL); //mhh + tools_switch(SP_ACTIVE_DESKTOP, TOOLS_NODES); + } + } } } -- cgit v1.2.3