diff options
Diffstat (limited to 'src/xml/repr-util.cpp')
| -rw-r--r-- | src/xml/repr-util.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xml/repr-util.cpp b/src/xml/repr-util.cpp index 528902fef..0a2997437 100644 --- a/src/xml/repr-util.cpp +++ b/src/xml/repr-util.cpp @@ -416,8 +416,8 @@ sp_repr_lookup_child(Inkscape::XML::Node *repr, g_return_val_if_fail(repr != NULL, NULL); for ( Inkscape::XML::Node *child = repr->firstChild() ; child ; child = child->next() ) { gchar const *child_value = child->attribute(key); - if ( child_value == value || - value && child_value && !strcmp(child_value, value) ) + if ( (child_value == value) || + (value && child_value && !strcmp(child_value, value)) ) { return child; } |
