diff options
Diffstat (limited to 'src/object')
| -rw-r--r-- | src/object/sp-item.cpp | 6 | ||||
| -rw-r--r-- | src/object/sp-lpe-item.cpp | 7 |
2 files changed, 5 insertions, 8 deletions
diff --git a/src/object/sp-item.cpp b/src/object/sp-item.cpp index 4b4d3e7cd..accf110ad 100644 --- a/src/object/sp-item.cpp +++ b/src/object/sp-item.cpp @@ -736,7 +736,7 @@ Inkscape::XML::Node* SPItem::write(Inkscape::XML::Document *xml_doc, Inkscape::X } } } - + gchar *c = sp_svg_transform_write(item->transform); repr->setAttribute("transform", c); g_free(c); @@ -1503,7 +1503,7 @@ void SPItem::doWriteTransform(Geom::Affine const &transform, Geom::Affine const // CPPIFY: check this code. // If onSetTransform is not overridden, CItem::onSetTransform will return the transform it was given as a parameter. // onSetTransform cannot be pure due to the fact that not all visible Items are transformable. - + SPLPEItem * lpeitem = SP_LPE_ITEM(this); if ( // run the object's set_transform (i.e. embed transform) only if: (dynamic_cast<SPText *>(this) && firstChild() && dynamic_cast<SPTextPath *>(firstChild())) || (!preserve && // user did not chose to preserve all transforms @@ -1518,7 +1518,6 @@ void SPItem::doWriteTransform(Geom::Affine const &transform, Geom::Affine const freeze_stroke_width_recursive(false); } } else { - SPLPEItem * lpeitem = SP_LPE_ITEM(this); if (lpeitem && lpeitem->hasPathEffectRecursive()) { lpeitem->adjust_livepatheffect(transform_attr); } @@ -1542,7 +1541,6 @@ void SPItem::doWriteTransform(Geom::Affine const &transform, Geom::Affine const // values if called in code handling the transformed signal. updateRepr(); - SPLPEItem * lpeitem = SP_LPE_ITEM(this); if (lpeitem && lpeitem->hasPathEffectRecursive()) { sp_lpe_item_update_patheffect(lpeitem, false, false); } diff --git a/src/object/sp-lpe-item.cpp b/src/object/sp-lpe-item.cpp index 7ff0a88d6..7b90319ab 100644 --- a/src/object/sp-lpe-item.cpp +++ b/src/object/sp-lpe-item.cpp @@ -170,11 +170,10 @@ void SPLPEItem::update(SPCtx* ctx, unsigned int flags) { } void SPLPEItem::modified(unsigned int flags) { - //TODO: remove if no regressions //stop update when modified and make the effect update on the LPE transform method if the effect require it - //if (SP_IS_GROUP(this) && (flags & SP_OBJECT_MODIFIED_FLAG) && (flags & SP_OBJECT_USER_MODIFIED_FLAG_B)) { - // sp_lpe_item_update_patheffect(this, true, true); - //} + if (SP_IS_GROUP(this) && (flags & SP_OBJECT_MODIFIED_FLAG) && (flags & SP_OBJECT_USER_MODIFIED_FLAG_B)) { + this->update_patheffect(false); + } } Inkscape::XML::Node* SPLPEItem::write(Inkscape::XML::Document *xml_doc, Inkscape::XML::Node *repr, guint flags) { |
