diff options
author | Robin Gareus <robin@gareus.org> | 2016-11-30 12:15:35 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2016-11-30 12:15:35 +0100 |
commit | 24c799cde33918dbd515662ed415e03b7fc71d20 (patch) | |
tree | d59dfce7ac6b98580df68827237db00e35cb05c8 /libs | |
parent | 02ded9061898aebc31c9131880627ae79e2c3f5b (diff) |
prefer bool operator
Diffstat (limited to 'libs')
-rw-r--r-- | libs/canvas/stateful_image.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/canvas/stateful_image.cc b/libs/canvas/stateful_image.cc index 5f04d9488c..fe669dc68d 100644 --- a/libs/canvas/stateful_image.cc +++ b/libs/canvas/stateful_image.cc @@ -108,7 +108,7 @@ StatefulImage::load_states (const XMLNode& node) continue; } - if ((s.image = find_image (prop->value())) == 0) { + if (!(s.image = find_image (prop->value()))) { error << string_compose (_("image %1 not found for state"), prop->value()) << endmsg; continue; } |