From 37dc1dd695cd2db6dcda930866bf97c10076ca77 Mon Sep 17 00:00:00 2001 From: Maximilian Albert Date: Wed, 2 Jul 2008 16:33:20 +0000 Subject: Enable status bar tips for LPE handles that are automatically created from PointParams (bzr r6118) --- src/live_effects/effect.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/live_effects/effect.cpp') 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::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(*p); KnotHolderEntity *e = dynamic_cast(*p); - e->create(desktop, item, knotholder); + e->create(desktop, item, knotholder, pparam->handleTip()); knotholder->add(e); } } -- cgit v1.2.3