diff options
Diffstat (limited to 'src/sp-filter.cpp')
| -rw-r--r-- | src/sp-filter.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/sp-filter.cpp b/src/sp-filter.cpp index d0fd59802..bafd356d6 100644 --- a/src/sp-filter.cpp +++ b/src/sp-filter.cpp @@ -564,9 +564,14 @@ Glib::ustring sp_filter_get_new_result_name(SPFilter *filter) { Inkscape::XML::Node *repr = primitive_obj->getRepr(); char const *result = repr->attribute("result"); int index; - if (result && sscanf(result, "result%d", &index) == 1) { - if (index > largest) { - largest = index; + if (result) + { + if (sscanf(result, "result%d", &index) == 1) + { + if (index > largest) + { + largest = index; + } } } } |
