diff options
| author | Jabiertxof <jtx@jtx> | 2016-12-06 20:41:55 +0000 |
|---|---|---|
| committer | Jabiertxof <jtx@jtx> | 2016-12-06 20:41:55 +0000 |
| commit | f799b5d6e8278c76326a6fec8da0e017eac342ec (patch) | |
| tree | 91fa98cf037add28f39673d0886317c31c9e6e46 /src/sp-lpe-item.cpp | |
| parent | Add dpiswitcher extension and option to scale legacy documents with it. (diff) | |
| download | inkscape-f799b5d6e8278c76326a6fec8da0e017eac342ec.tar.gz inkscape-f799b5d6e8278c76326a6fec8da0e017eac342ec.zip | |
Fixes for measure LPE and speed path based LPE operations
(bzr r15302)
Diffstat (limited to 'src/sp-lpe-item.cpp')
| -rw-r--r-- | src/sp-lpe-item.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/sp-lpe-item.cpp b/src/sp-lpe-item.cpp index ae29137e6..872a88289 100644 --- a/src/sp-lpe-item.cpp +++ b/src/sp-lpe-item.cpp @@ -289,22 +289,6 @@ sp_lpe_item_update_patheffect (SPLPEItem *lpeitem, bool wholetree, bool write) if (!lpeitem->pathEffectsEnabled()) return; - // TODO: hack! this will be removed when path length measuring is reimplemented in a better way - PathEffectList lpelist = lpeitem->getEffectList(); - std::list<Inkscape::LivePathEffect::LPEObjectReference *>::iterator i; - for (i = lpelist.begin(); i != lpelist.end(); ++i) { - if ((*i)->lpeobject) { - Inkscape::LivePathEffect::Effect *lpe = (*i)->lpeobject->get_lpe(); - if (dynamic_cast<Inkscape::LivePathEffect::LPEPathLength *>(lpe)) { - if (!lpe->isVisible()) { - // we manually disable text for LPEPathLength - // use static_cast, because we already checked for the right type above - static_cast<Inkscape::LivePathEffect::LPEPathLength *>(lpe)->hideCanvasText(); - } - } - } - } - SPLPEItem *top = NULL; if (wholetree) { |
