From 9916339c54c3b82435984fdfd645c561724fc25c Mon Sep 17 00:00:00 2001 From: buliabyak Date: Sat, 3 Mar 2007 06:33:55 +0000 Subject: [PATCH] fix warning when creating a mask which is the first item in defs --- src/sp-mask.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/sp-mask.cpp b/src/sp-mask.cpp index 9c8b0ba32..64ff38019 100644 --- a/src/sp-mask.cpp +++ b/src/sp-mask.cpp @@ -293,7 +293,8 @@ sp_mask_create (GSList *reprs, SPDocument *document, NR::Matrix const* applyTran } } - defsrepr->changeOrder(repr, defsrepr->lastChild()); // workaround for bug 989084 + if (repr != defsrepr->lastChild()) + defsrepr->changeOrder(repr, defsrepr->lastChild()); // workaround for bug 989084 Inkscape::GC::release(repr); return mask_id; -- 2.30.2