summaryrefslogtreecommitdiffstats
path: root/src/live_effects/lpe-path_length.cpp
diff options
context:
space:
mode:
authorJabiertxof <jtx@jtx>2016-12-06 20:48:14 +0000
committerJabiertxof <jtx@jtx>2016-12-06 20:48:14 +0000
commitdcb86798cf8409035c632b6c429bc8b2f9ea84d3 (patch)
treef4b76f1c12b94b8704bf4c76620a093a4a42c62b /src/live_effects/lpe-path_length.cpp
parentUpdate to trunk (diff)
parentFixes for measure LPE and speed path based LPE operations (diff)
downloadinkscape-dcb86798cf8409035c632b6c429bc8b2f9ea84d3.tar.gz
inkscape-dcb86798cf8409035c632b6c429bc8b2f9ea84d3.zip
Update to trunk
(bzr r15295.1.8)
Diffstat (limited to 'src/live_effects/lpe-path_length.cpp')
-rw-r--r--src/live_effects/lpe-path_length.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/live_effects/lpe-path_length.cpp b/src/live_effects/lpe-path_length.cpp
index 8fbf9d420..6ec1e0ede 100644
--- a/src/live_effects/lpe-path_length.cpp
+++ b/src/live_effects/lpe-path_length.cpp
@@ -37,12 +37,6 @@ LPEPathLength::~LPEPathLength()
}
-void
-LPEPathLength::hideCanvasText() {
- // this is only used in sp-lpe-item.cpp to hide the canvas text when the effect is invisible
- info_text.param_setValue("");
-}
-
Geom::Piecewise<Geom::D2<Geom::SBasis> >
LPEPathLength::doEffect_pwd2 (Geom::Piecewise<Geom::D2<Geom::SBasis> > const & pwd2_in)
{
@@ -69,7 +63,9 @@ LPEPathLength::doEffect_pwd2 (Geom::Piecewise<Geom::D2<Geom::SBasis> > const & p
//g_print ("Area is zero\n");
}
//g_print ("Area: %f\n", area);
-
+ if (!this->isVisible()) {
+ info_text.param_setValue("");
+ }
return pwd2_in;
}