diff options
| author | Jabiertxof <jabier.arraiza@marker.es> | 2019-02-20 14:51:16 +0000 |
|---|---|---|
| committer | Jabiertxof <jabier.arraiza@marker.es> | 2019-02-20 14:51:16 +0000 |
| commit | 3be606331a743e70f3394238bf4aa60cfef9f700 (patch) | |
| tree | dd0939b7f427e20592aa63e0803a747f90168173 /src/object | |
| parent | Fix for issue 95: Crash on applying Perspective/Envelope LPE to a group (diff) | |
| download | inkscape-3be606331a743e70f3394238bf4aa60cfef9f700.tar.gz inkscape-3be606331a743e70f3394238bf4aa60cfef9f700.zip | |
Remove unneded code from previous commit
Diffstat (limited to 'src/object')
| -rw-r--r-- | src/object/sp-item-group.cpp | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/src/object/sp-item-group.cpp b/src/object/sp-item-group.cpp index 12d245f77..acc08d175 100644 --- a/src/object/sp-item-group.cpp +++ b/src/object/sp-item-group.cpp @@ -927,7 +927,6 @@ sp_group_perform_patheffect(SPGroup *group, SPGroup *top_group, Inkscape::LivePa { std::vector<SPItem*> const item_list = sp_item_group_item_list(group); for (auto sub_item : item_list) { - std::cout << sub_item << "aaaa" << std::endl; SPGroup *sub_group = dynamic_cast<SPGroup *>(sub_item); if (sub_group) { sp_group_perform_patheffect(sub_group, top_group, lpe, write); @@ -940,27 +939,7 @@ sp_group_perform_patheffect(SPGroup *group, SPGroup *top_group, Inkscape::LivePa top_group->applyToMask(clipmaskto, lpe); } if (sub_shape) { - SPCurve * c = nullptr; - // If item is a SPRect, convert it to path first: - if ( dynamic_cast<SPRect *>(sub_shape) ) { - SPDesktop *desktop = SP_ACTIVE_DESKTOP; - if (desktop) { - Inkscape::Selection *sel = desktop->getSelection(); - if ( sel && !sel->isEmpty() ) { - sel->clear(); - sel->add(SP_ITEM(sub_shape)); - sel->toCurves(); - sub_item = sel->singleItem(); - sub_shape = dynamic_cast<SPShape *>(sub_item); - if (!sub_shape) { - continue; - } - sel->clear(); - sel->add(SP_ITEM(top_group)); - } - } - } - c = sub_shape->getCurve(); + SPCurve * c = sub_shape->getCurve(); bool success = false; // only run LPEs when the shape has a curve defined if (c) { |
