diff options
| author | Jabier Arraiza Cenoz <jabier.arraiza@marker.es> | 2014-05-05 08:44:33 +0000 |
|---|---|---|
| committer | Jabiertxof <jtx@jtx.marker.es> | 2014-05-05 08:44:33 +0000 |
| commit | 8a4e7975e48ae18a719f4ecfae795fb44a188eee (patch) | |
| tree | c2262728d2bdf1825521dc4cbe71a8b2f3bf8b63 /src/sp-lpe-item.cpp | |
| parent | update to trunk (diff) | |
| parent | Enabling path manipulator to comunicate if paths are bspline when (diff) | |
| download | inkscape-8a4e7975e48ae18a719f4ecfae795fb44a188eee.tar.gz inkscape-8a4e7975e48ae18a719f4ecfae795fb44a188eee.zip | |
adding VinÃcius work whith node tips
(bzr r11950.1.339)
Diffstat (limited to 'src/sp-lpe-item.cpp')
| -rw-r--r-- | src/sp-lpe-item.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/sp-lpe-item.cpp b/src/sp-lpe-item.cpp index f59bc33ee..33359727a 100644 --- a/src/sp-lpe-item.cpp +++ b/src/sp-lpe-item.cpp @@ -606,6 +606,22 @@ SPLPEItem::getPathEffectOfType(int type) return NULL; } +Inkscape::LivePathEffect::Effect const* +SPLPEItem::getPathEffectOfType(int type) const +{ + std::list<Inkscape::LivePathEffect::LPEObjectReference *>::const_iterator i; + for (i = path_effect_list->begin(); i != path_effect_list->end(); ++i) { + LivePathEffectObject const *lpeobj = (*i)->lpeobject; + if (lpeobj) { + Inkscape::LivePathEffect::Effect const *lpe = lpeobj->get_lpe(); + if (lpe && (lpe->effectType() == type)) { + return lpe; + } + } + } + return NULL; +} + void SPLPEItem::editNextParamOncanvas(SPDesktop *dt) { Inkscape::LivePathEffect::LPEObjectReference *lperef = this->getCurrentLPEReference(); |
