diff options
| author | Maximilian Albert <maximilian.albert@gmail.com> | 2008-06-16 16:17:27 +0000 |
|---|---|---|
| committer | cilix42 <cilix42@users.sourceforge.net> | 2008-06-16 16:17:27 +0000 |
| commit | 34ac54244271a679a72da82b1a5ff62be1d3c58f (patch) | |
| tree | 6252b2888747e98c4efcf905f2d9e34640cba2d1 /src/live_effects/effect.cpp | |
| parent | Temporarily add shortcuts in pen context to activate some LPEs which need pat... (diff) | |
| download | inkscape-34ac54244271a679a72da82b1a5ff62be1d3c58f.tar.gz inkscape-34ac54244271a679a72da82b1a5ff62be1d3c58f.zip | |
Activate automatic knotholders for LPE PointParams
(bzr r5963)
Diffstat (limited to 'src/live_effects/effect.cpp')
| -rw-r--r-- | src/live_effects/effect.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/live_effects/effect.cpp b/src/live_effects/effect.cpp index 164447387..7e56023a6 100644 --- a/src/live_effects/effect.cpp +++ b/src/live_effects/effect.cpp @@ -569,6 +569,23 @@ Effect::transform_multiply(Geom::Matrix const& postmul, bool set) } } +bool +Effect::providesKnotholder() +{ + // does the effect actively provide any knotholder entities of its own? + if (kh_entity_vector.size() > 0) + return true; + + // otherwise: are there any PointParams? + for (std::vector<Parameter *>::iterator p = param_vector.begin(); p != param_vector.end(); ++p) { + if ((*p)->paramType() == Inkscape::LivePathEffect::POINT_PARAM) { + return true; + } + } + + return false; +} + } /* namespace LivePathEffect */ } /* namespace Inkscape */ |
