From 2eac3e0643239728cf78c4a0dbd178c756d14d6e Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Tue, 14 Mar 2017 11:24:36 +0200 Subject: [PATCH] Fix bug with rotation mode. --HG-- branch : feature --- src/libs/vwidgets/vtextgraphicsitem.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libs/vwidgets/vtextgraphicsitem.cpp b/src/libs/vwidgets/vtextgraphicsitem.cpp index 041aa8c84..b5be9b83b 100644 --- a/src/libs/vwidgets/vtextgraphicsitem.cpp +++ b/src/libs/vwidgets/vtextgraphicsitem.cpp @@ -596,7 +596,7 @@ void VTextGraphicsItem::mouseReleaseEvent(QGraphicsSceneMouseEvent* pME) // but if user did some operation (move/resize), emit the proper signal and update the label if (bShort == true) { - if (m_bReleased == true && m_moveType & IsRotatable) + if (m_bReleased == true && m_moveType & IsRotatable) { m_eMode = mRotate; UpdateBox(); @@ -615,7 +615,7 @@ void VTextGraphicsItem::mouseReleaseEvent(QGraphicsSceneMouseEvent* pME) } else { // in rotate mode, if user did just press/release, switch to move mode - if (bShort == true) + if (bShort == true && (m_moveType & IsMovable || m_moveType & IsResizable)) { m_eMode = mMove; }