summaryrefslogtreecommitdiffstats
path: root/src/sp-lpe-item.cpp
diff options
context:
space:
mode:
authorLiam P. White <inkscapebrony@gmail.com>2014-04-25 20:59:30 +0000
committerJosh Andler <scislac@gmail.com>2014-04-25 20:59:30 +0000
commit8171b3f6ffaabe434dcf4802d984f90e58da4f52 (patch)
tree84b4cb31138054149274544207e67b7ce02baf14 /src/sp-lpe-item.cpp
parentImprove keyboard navigation in LPE dialog. (diff)
downloadinkscape-8171b3f6ffaabe434dcf4802d984f90e58da4f52.tar.gz
inkscape-8171b3f6ffaabe434dcf4802d984f90e58da4f52.zip
Fix for on-canvas LPE controls to display immediately.
Fixed bugs: - https://launchpad.net/bugs/1219324 (bzr r13306)
Diffstat (limited to 'src/sp-lpe-item.cpp')
-rw-r--r--src/sp-lpe-item.cpp16
1 files changed, 16 insertions, 0 deletions
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 <glibmm/i18n.h>
#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 <algorithm>
@@ -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<Inkscape::UI::Tools::NodeTool*>(ec);
+ tools_switch(SP_ACTIVE_DESKTOP, TOOLS_LPETOOL); //mhh
+ tools_switch(SP_ACTIVE_DESKTOP, TOOLS_NODES);
+ }
+ }
}
}