[qet] qet/qet: [5435] Fix bug when resize the angle of a part arc with the handles.

[ Thread Index | Date Index | More lists.tuxfamily.org/qet Archives ]


Revision: 5435
Author:   blacksun
Date:     2018-07-11 11:28:38 +0200 (Wed, 11 Jul 2018)
Log Message:
-----------
Fix bug when resize the angle of a part arc with the handles.

Modified Paths:
--------------
    trunk/sources/editor/graphicspart/partarc.cpp

Modified: trunk/sources/editor/graphicspart/partarc.cpp
===================================================================
--- trunk/sources/editor/graphicspart/partarc.cpp	2018-07-09 19:22:50 UTC (rev 5434)
+++ trunk/sources/editor/graphicspart/partarc.cpp	2018-07-11 09:28:38 UTC (rev 5435)
@@ -365,7 +365,7 @@
 		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) {


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/