summaryrefslogtreecommitdiffstats
path: root/src/sp-use.cpp
diff options
context:
space:
mode:
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);