[aseprite] 24/51: Right-click subtract selection again on floating pixels (fix #1164)
Tobias Hansen
thansen at moszumanska.debian.org
Mon Jul 11 21:35:16 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 ee1dac08934c54b891e759c3e807dc60c1d1eb67
Author: David Capello <davidcapello at gmail.com>
Date: Fri Jul 1 10:07:55 2016 -0300
Right-click subtract selection again on floating pixels (fix #1164)
---
src/app/ui/editor/moving_pixels_state.cpp | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/app/ui/editor/moving_pixels_state.cpp b/src/app/ui/editor/moving_pixels_state.cpp
index 6ae308e..69cdd4f 100644
--- a/src/app/ui/editor/moving_pixels_state.cpp
+++ b/src/app/ui/editor/moving_pixels_state.cpp
@@ -256,9 +256,10 @@ bool MovingPixelsState::onMouseDown(Editor* editor, MouseMessage* msg)
}
}
- // Start "moving pixels" loop
- if (editor->isInsideSelection() && (msg->left() ||
- msg->right())) {
+ // Start "moving pixels" loop. Here we check only for left-click as
+ // right-click can be used to deselect/subtract selection, so we
+ // should drop the selection in this later case.
+ if (editor->isInsideSelection() && msg->left()) {
// In case that the user is pressing the copy-selection keyboard shortcut.
EditorCustomizationDelegate* customization = editor->getCustomizationDelegate();
if ((customization) &&
--
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