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; }