summaryrefslogtreecommitdiffstats
path: root/src/live_effects/effect.cpp
diff options
context:
space:
mode:
authorMaximilian Albert <maximilian.albert@gmail.com>2008-06-16 16:17:27 +0000
committercilix42 <cilix42@users.sourceforge.net>2008-06-16 16:17:27 +0000
commit34ac54244271a679a72da82b1a5ff62be1d3c58f (patch)
tree6252b2888747e98c4efcf905f2d9e34640cba2d1 /src/live_effects/effect.cpp
parentTemporarily add shortcuts in pen context to activate some LPEs which need pat... (diff)
downloadinkscape-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.cpp17
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 */