From 34ebf07118de8737fa22d5892571ef48305a19a7 Mon Sep 17 00:00:00 2001 From: David Capello Date: Fri, 6 May 2016 16:52:56 -0300 Subject: [PATCH] Fix warning ptr <-> bool conversion in MoveMaskCommand::onEnabled() --- src/app/commands/cmd_move_mask.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/commands/cmd_move_mask.cpp b/src/app/commands/cmd_move_mask.cpp index e8a8c5f76..962bfa9a6 100644 --- a/src/app/commands/cmd_move_mask.cpp +++ b/src/app/commands/cmd_move_mask.cpp @@ -80,7 +80,7 @@ bool MoveMaskCommand::onEnabled(Context* context) ContextFlags::HasVisibleMask | ContextFlags::HasActiveImage); else - return current_editor; + return (current_editor ? true: false); }