Right-click subtract selection again on floating pixels (fix #1164)

This commit is contained in:
David Capello 2016-07-01 10:07:55 -03:00
parent 8ee743c92a
commit ee1dac0893

View File

@ -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) &&