summaryrefslogtreecommitdiffstats
path: root/src/ui
diff options
context:
space:
mode:
authorMartin Owens <doctormo@gmail.com>2013-04-21 01:33:45 +0000
committerMartin Owens <doctormo@gmail.com>2013-04-21 01:33:45 +0000
commit2905b594387d7f4c5d2618d45a1759c2f57abb8d (patch)
tree4d9958abb9561781334ad7f7db0954e79072100d /src/ui
parentOutput attributes as lengths instead of doubles. (diff)
downloadinkscape-2905b594387d7f4c5d2618d45a1759c2f57abb8d.tar.gz
inkscape-2905b594387d7f4c5d2618d45a1759c2f57abb8d.zip
Warn if we get a NULL object
Fixed bugs: - https://launchpad.net/bugs/1104326 (bzr r12290)
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/dialog/symbols.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/ui/dialog/symbols.cpp b/src/ui/dialog/symbols.cpp
index 4eeb1b5f0..46dbcaae6 100644
--- a/src/ui/dialog/symbols.cpp
+++ b/src/ui/dialog/symbols.cpp
@@ -484,10 +484,8 @@ void SymbolsDialog::get_symbols() {
}
GSList* SymbolsDialog::symbols_in_doc_recursive (SPObject *r, GSList *l)
-{
- if (!r) {
- return l;
- }
+{
+ g_return_val_if_fail(r != NULL, l);
// Stop multiple counting of same symbol
if( SP_IS_USE(r) ) {