From 75fa525a68af3ac9826dca66f00fb01f6efa3c51 Mon Sep 17 00:00:00 2001 From: Jabier Arraiza Date: Sat, 14 Apr 2018 18:50:20 +0200 Subject: Fixes to transforms on LPE --- src/object/sp-item.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/object/sp-item.cpp') diff --git a/src/object/sp-item.cpp b/src/object/sp-item.cpp index a228d9313..4b4d3e7cd 100644 --- a/src/object/sp-item.cpp +++ b/src/object/sp-item.cpp @@ -1536,14 +1536,17 @@ void SPItem::doWriteTransform(Geom::Affine const &transform, Geom::Affine const } set_item_transform(transform_attr); - - // Note: updateRepr comes before emitting the transformed signal since // it causes clone SPUse's copy of the original object to brought up to // date with the original. Otherwise, sp_use_bbox returns incorrect // 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); + } + // send the relative transform with a _transformed_signal _transformed_signal.emit(&advertized_transform, this); } -- cgit v1.2.3