[aseprite] 09/64: Fix warning ptr <-> bool conversion in MoveMaskCommand::onEnabled()

Tobias Hansen thansen at moszumanska.debian.org
Tue Jun 21 14:43:00 UTC 2016


This is an automated email from the git hooks/post-receive script.

thansen pushed a commit to branch master
in repository aseprite.

commit 34ebf07118de8737fa22d5892571ef48305a19a7
Author: David Capello <davidcapello at gmail.com>
Date:   Fri May 6 16:52:56 2016 -0300

    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 e8a8c5f..962bfa9 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);
 
   }
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/aseprite.git



More information about the Pkg-games-commits mailing list