summaryrefslogtreecommitdiffstats
path: root/src/sp-use.cpp
diff options
context:
space:
mode:
authorKrzysztof Kosi??ski <tweenk.pl@gmail.com>2010-11-25 21:09:47 +0000
committerKrzysztof KosiƄski <tweenk.pl@gmail.com>2010-11-25 21:09:47 +0000
commit94eb3cf6fd5af295682aaeb6556a87c7ae73dbe7 (patch)
tree42ab9c50794bdb2d07affdc48e9061b00c2bfea6 /src/sp-use.cpp
parentFix crash when shift-clicking the top rectangle rounding handle. (diff)
parentFix Bug #675309 - crash when unlinking an orphaned clone (diff)
downloadinkscape-94eb3cf6fd5af295682aaeb6556a87c7ae73dbe7.tar.gz
inkscape-94eb3cf6fd5af295682aaeb6556a87c7ae73dbe7.zip
Fix crash when unlinking orphaned clones. Patch from Adonis Papaderos.
Fixed bugs: - https://launchpad.net/bugs/675309 (bzr r9922)
Diffstat (limited to 'src/sp-use.cpp')
-rw-r--r--src/sp-use.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sp-use.cpp b/src/sp-use.cpp
index 9cd38e4b3..ecb7eb788 100644
--- a/src/sp-use.cpp
+++ b/src/sp-use.cpp
@@ -678,7 +678,7 @@ sp_use_unlink(SPUse *use)
// Track the ultimate source of a chain of uses.
SPItem *orig = sp_use_root(use);
- g_return_val_if_fail(orig, NULL);
+ if (!orig) return NULL ;
// Calculate the accumulated transform, starting from the original.
Geom::Matrix t = sp_use_get_root_transform(use);