From ae0837d2386e63902c86b57137e6bdcd60aabd54 Mon Sep 17 00:00:00 2001 From: bulia byak Date: Tue, 30 May 2006 21:13:04 +0000 Subject: 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. (bzr r1091) --- src/sp-mask.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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; -- cgit v1.2.3