From 24c799cde33918dbd515662ed415e03b7fc71d20 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Wed, 30 Nov 2016 12:15:35 +0100 Subject: [PATCH] prefer bool operator --- libs/canvas/stateful_image.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }