fix logic error

This commit is contained in:
ArsenArsen 2018-02-24 22:42:08 +01:00
parent a1c96530d0
commit fddf59f5d7
No known key found for this signature in database
GPG Key ID: 683D2F43B0CA4BD2

View File

@ -216,7 +216,7 @@ void CropScene::mouseMoved(QGraphicsSceneMouseEvent *e, QPointF cursorPos, QPoin
auto buttons = e->buttons();
if (e->modifiers() & Qt::ControlModifier && buttons == Qt::LeftButton) {
auto item = whichItem(cursorPos);
if (item) item->moveBy(cursorPos.x(), cursorPos.y());
if (item) item->moveBy(delta.x(), delta.y());
return;
}
if (buttons == Qt::LeftButton) {