summaryrefslogtreecommitdiffstats
path: root/src/sp-mask.cpp
diff options
context:
space:
mode:
authorbulia byak <buliabyak@gmail.com>2006-05-30 21:13:04 +0000
committerbuliabyak <buliabyak@users.sourceforge.net>2006-05-30 21:13:04 +0000
commitae0837d2386e63902c86b57137e6bdcd60aabd54 (patch)
tree6d2b13816814cf89290657982110a54da6f31a55 /src/sp-mask.cpp
parentupdated fr (diff)
downloadinkscape-ae0837d2386e63902c86b57137e6bdcd60aabd54.tar.gz
inkscape-ae0837d2386e63902c86b57137e6bdcd60aabd54.zip
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)
Diffstat (limited to 'src/sp-mask.cpp')
-rw-r--r--src/sp-mask.cpp2
1 files changed, 2 insertions, 0 deletions
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;