diff options
Diffstat (limited to 'src/sp-mask.cpp')
| -rw-r--r-- | src/sp-mask.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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; |
