From: buliabyak Date: Tue, 30 May 2006 21:13:04 +0000 (+0000) Subject: workaround for 1466515: transforming items in the mask causes their gradients to... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=dc6e5409aa2c0778a68b92179563964268e39013;p=inkscape.git workaround for 1466515: transforming items in the mask causes their gradients to fork, and the forked ones are added to defs after the mask, which makes them fail on reload due to bug 989084. Now mask is shifted to the end of defs after the transforms, making sure all its gradients are behind it. --- diff --git a/src/sp-mask.cpp b/src/sp-mask.cpp index 55b678293..6ad8a4871 100644 --- a/src/sp-mask.cpp +++ b/src/sp-mask.cpp @@ -290,6 +290,8 @@ sp_mask_create (GSList *reprs, SPDocument *document, NR::Matrix const* applyTran sp_item_write_transform(item, SP_OBJECT_REPR(item), transform); } } + + defsrepr->changeOrder(repr, defsrepr->lastChild()); // workaround for bug 989084 Inkscape::GC::release(repr); return mask_id;