summaryrefslogtreecommitdiffstats
path: root/src/live_effects/lpe-simplify.cpp
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2014-11-02 00:19:42 +0000
committerJabiertxof <jtx@jtx.marker.es>2014-11-02 00:19:42 +0000
commitc3cf3749afd1dddde094e4e1cf5e6c3285c03261 (patch)
tree9735a7e7876dadd3ac976bd2e7349536767d198e /src/live_effects/lpe-simplify.cpp
parentFix a bug in perspective/envelope LPE, rendering points -handles- outside bou... (diff)
downloadinkscape-c3cf3749afd1dddde094e4e1cf5e6c3285c03261.tar.gz
inkscape-c3cf3749afd1dddde094e4e1cf5e6c3285c03261.zip
Change calls to desktop with SP_ACTIVE_DESKTOP
(bzr r13656)
Diffstat (limited to 'src/live_effects/lpe-simplify.cpp')
-rw-r--r--src/live_effects/lpe-simplify.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/live_effects/lpe-simplify.cpp b/src/live_effects/lpe-simplify.cpp
index c191fbbe6..2b2efb1a9 100644
--- a/src/live_effects/lpe-simplify.cpp
+++ b/src/live_effects/lpe-simplify.cpp
@@ -157,8 +157,8 @@ LPESimplify::doEffect(SPCurve *curve) {
Geom::PathVector outres = Geom::parse_svg_path(pathliv->svg_dump_path());
generateHelperPath(outres);
curve->set_pathvector(outres);
- if(SP_ACTIVE_DESKTOP && INK_IS_NODE_TOOL(SP_ACTIVE_DESKTOP->event_context)){
- SPDesktop* desktop = SP_ACTIVE_DESKTOP;
+ SPDesktop* desktop = SP_ACTIVE_DESKTOP;
+ if(desktop && INK_IS_NODE_TOOL(desktop->event_context)){
Inkscape::UI::Tools::NodeTool *nt = static_cast<Inkscape::UI::Tools::NodeTool*>(desktop->event_context);
nt->update_helperpath();
}