diff options
| author | Maximilian Albert <maximilian.albert@gmail.com> | 2008-07-02 16:33:20 +0000 |
|---|---|---|
| committer | cilix42 <cilix42@users.sourceforge.net> | 2008-07-02 16:33:20 +0000 |
| commit | 37dc1dd695cd2db6dcda930866bf97c10076ca77 (patch) | |
| tree | 214b3f9d8d6508725894695e80c77fce4ccd27bd /src/live_effects/effect.cpp | |
| parent | Don't dereference NULL knotholder; fixes instant crash, but using the handles... (diff) | |
| download | inkscape-37dc1dd695cd2db6dcda930866bf97c10076ca77.tar.gz inkscape-37dc1dd695cd2db6dcda930866bf97c10076ca77.zip | |
Enable status bar tips for LPE handles that are automatically created from PointParams
(bzr r6118)
Diffstat (limited to 'src/live_effects/effect.cpp')
| -rw-r--r-- | src/live_effects/effect.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/live_effects/effect.cpp b/src/live_effects/effect.cpp index 9ee4105bc..74e5c29fd 100644 --- a/src/live_effects/effect.cpp +++ b/src/live_effects/effect.cpp @@ -413,11 +413,12 @@ Effect::addHandles(KnotHolder *knotholder, SPDesktop *desktop, SPItem *item) { void Effect::addPointParamHandles(KnotHolder *knotholder, SPDesktop *desktop, SPItem *item) { - using namespace std; + using namespace Inkscape::LivePathEffect; for (std::vector<Parameter *>::iterator p = param_vector.begin(); p != param_vector.end(); ++p) { - if ((*p)->paramType() == Inkscape::LivePathEffect::POINT_PARAM) { + if ((*p)->paramType() == POINT_PARAM) { + PointParam *pparam = static_cast<PointParam *>(*p); KnotHolderEntity *e = dynamic_cast<KnotHolderEntity *>(*p); - e->create(desktop, item, knotholder); + e->create(desktop, item, knotholder, pparam->handleTip()); knotholder->add(e); } } |
