diff options
| author | Martin Owens <doctormo@gmail.com> | 2013-04-21 01:33:45 +0000 |
|---|---|---|
| committer | Martin Owens <doctormo@gmail.com> | 2013-04-21 01:33:45 +0000 |
| commit | 2905b594387d7f4c5d2618d45a1759c2f57abb8d (patch) | |
| tree | 4d9958abb9561781334ad7f7db0954e79072100d /src/ui | |
| parent | Output attributes as lengths instead of doubles. (diff) | |
| download | inkscape-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.cpp | 6 |
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) ) { |
