summaryrefslogtreecommitdiffstats
path: root/src/xml
diff options
context:
space:
mode:
authorJon A. Cruz <jon@joncruz.org>2009-02-10 07:30:56 +0000
committerjoncruz <joncruz@users.sourceforge.net>2009-02-10 07:30:56 +0000
commite903e021e4b6c7adabea47682c861dcb3326bc19 (patch)
treeef8f2d3e613f21648ca8b17631cc94bcbe002e42 /src/xml
parentprevent hotkey clash (at least for english) (diff)
downloadinkscape-e903e021e4b6c7adabea47682c861dcb3326bc19.tar.gz
inkscape-e903e021e4b6c7adabea47682c861dcb3326bc19.zip
Adding explicit parenthesis to remove warnings
(bzr r7261)
Diffstat (limited to 'src/xml')
-rw-r--r--src/xml/repr-util.cpp4
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;
}