summaryrefslogtreecommitdiffstats
path: root/src/live_effects/lpe-perspective-envelope.cpp
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2015-03-10 19:20:02 +0000
committerJabiertxof <jtx@jtx.marker.es>2015-03-10 19:20:02 +0000
commit52c0042e1daeb6645ae4d479b92bae26944c0161 (patch)
tree133e7dcb20b622d74dfcccfb5cd1add44ae407f8 /src/live_effects/lpe-perspective-envelope.cpp
parentRemove redundant buttons on simplify LPE (diff)
downloadinkscape-52c0042e1daeb6645ae4d479b92bae26944c0161.tar.gz
inkscape-52c0042e1daeb6645ae4d479b92bae26944c0161.zip
This commit remove all ocurrences of Active Desktop casts and all tool swith on Perspective/Envelope and in Lattice 2, also remove some casts from point parameter
(bzr r13987)
Diffstat (limited to 'src/live_effects/lpe-perspective-envelope.cpp')
-rw-r--r--src/live_effects/lpe-perspective-envelope.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/live_effects/lpe-perspective-envelope.cpp b/src/live_effects/lpe-perspective-envelope.cpp
index d38427d0a..74c870498 100644
--- a/src/live_effects/lpe-perspective-envelope.cpp
+++ b/src/live_effects/lpe-perspective-envelope.cpp
@@ -19,9 +19,8 @@
#include "helper/geom.h"
#include "display/curve.h"
#include "svg/svg.h"
-#include "ui/tools-switch.h"
#include <gsl/gsl_linalg.h>
-#include "desktop.h"
+
using namespace Geom;
@@ -335,11 +334,6 @@ LPEPerspectiveEnvelope::resetGrid()
Up_Right_Point.param_set_and_write_default();
Down_Right_Point.param_set_and_write_default();
Down_Left_Point.param_set_and_write_default();
- //todo:this hack is only to reposition the knots on reser grid button
- //Better update path effect in LPEITEM
- SPDesktop * desktop = SP_ACTIVE_DESKTOP;
- tools_switch(desktop, TOOLS_SELECT);
- tools_switch(desktop, TOOLS_NODES);
}
void