From: buliabyak Date: Sat, 3 Mar 2007 06:33:55 +0000 (+0000) Subject: fix warning when creating a mask which is the first item in defs X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=9916339c54c3b82435984fdfd645c561724fc25c;p=inkscape.git fix warning when creating a mask which is the first item in defs --- 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;