From dc6e5409aa2c0778a68b92179563964268e39013 Mon Sep 17 00:00:00 2001 From: buliabyak Date: Tue, 30 May 2006 21:13:04 +0000 Subject: [PATCH] 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. --- src/sp-mask.cpp | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.30.2