From 9db5c4fe9f563b0fe17b7ab8669c33fc4bf56ade Mon Sep 17 00:00:00 2001 From: blacksun Date: Wed, 11 Jul 2018 09:28:38 +0000 Subject: [PATCH] Fix bug when resize the angle of a part arc with the handles. git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5435 bfdf4180-ca20-0410-9c96-a3a8aa849046 --- sources/editor/graphicspart/partarc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/editor/graphicspart/partarc.cpp b/sources/editor/graphicspart/partarc.cpp index 90df79d43..03bce321f 100644 --- a/sources/editor/graphicspart/partarc.cpp +++ b/sources/editor/graphicspart/partarc.cpp @@ -365,7 +365,7 @@ void PartArc::handlerMouseMoveEvent(QetGraphicsHandlerItem *qghi, QGraphicsScene setRect(QetGraphicsHandlerUtility::mirrorRectForPosAtIndex(m_rect, new_pos, m_vector_index)); else { - QLineF line(m_rect.center(), mapFromItem(qghi, event->pos())); + QLineF line(m_rect.center(), mapFromScene(event->scenePos())); prepareGeometryChange(); if (m_vector_index == 0) {