summaryrefslogtreecommitdiffstats
path: root/src/object
diff options
context:
space:
mode:
authorJabiertxof <jabier.arraiza@marker.es>2019-02-20 14:51:16 +0000
committerJabiertxof <jabier.arraiza@marker.es>2019-02-20 14:51:16 +0000
commit3be606331a743e70f3394238bf4aa60cfef9f700 (patch)
treedd0939b7f427e20592aa63e0803a747f90168173 /src/object
parentFix for issue 95: Crash on applying Perspective/Envelope LPE to a group (diff)
downloadinkscape-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.cpp23
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) {