diff options
| author | Maximilian Albert <maximilian.albert@gmail.com> | 2008-09-13 16:51:16 +0000 |
|---|---|---|
| committer | cilix42 <cilix42@users.sourceforge.net> | 2008-09-13 16:51:16 +0000 |
| commit | 7b4d58faf59da2981349ebfacdbcdd64fc05f228 (patch) | |
| tree | 59cec14d5c71b8942eb942e704c76e6577b946e8 /src/live_effects | |
| parent | Add option to align & distribute dialog to treat the selection as a group (cl... (diff) | |
| download | inkscape-7b4d58faf59da2981349ebfacdbcdd64fc05f228.tar.gz inkscape-7b4d58faf59da2981349ebfacdbcdd64fc05f228.zip | |
Hide canvas text, too, when lpe-path-length is invisible
(bzr r6801)
Diffstat (limited to 'src/live_effects')
| -rw-r--r-- | src/live_effects/lpe-path_length.cpp | 6 | ||||
| -rw-r--r-- | src/live_effects/lpe-path_length.h | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/live_effects/lpe-path_length.cpp b/src/live_effects/lpe-path_length.cpp index 3b9b07c82..5ecf2ffa2 100644 --- a/src/live_effects/lpe-path_length.cpp +++ b/src/live_effects/lpe-path_length.cpp @@ -34,6 +34,12 @@ LPEPathLength::~LPEPathLength() } +bool +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) { diff --git a/src/live_effects/lpe-path_length.h b/src/live_effects/lpe-path_length.h index 1ec5165e9..5a4638d90 100644 --- a/src/live_effects/lpe-path_length.h +++ b/src/live_effects/lpe-path_length.h @@ -28,6 +28,8 @@ public: virtual Geom::Piecewise<Geom::D2<Geom::SBasis> > doEffect_pwd2 (Geom::Piecewise<Geom::D2<Geom::SBasis> > const & pwd2_in); + bool hideCanvasText(); + private: LPEPathLength(const LPEPathLength&); LPEPathLength& operator=(const LPEPathLength&); |
