r19306 by craig - #12461: Move/Resize Value Indicator may show wrong values if Ctrl is pressed

scribus-commit scribus-commit at lists.scribus.net
Tue Jul 1 20:12:19 UTC 2014


Author: craig
Date: Tue Jul  1 20:12:19 2014
New Revision: 19306

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=19306
Log:
#12461: Move/Resize Value Indicator may show wrong values if Ctrl is pressed

Modified:
    trunk/Scribus/scribus/canvasmode_create.cpp

Modified: trunk/Scribus/scribus/canvasmode_create.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=19306&path=/trunk/Scribus/scribus/canvasmode_create.cpp
==============================================================================
--- trunk/Scribus/scribus/canvasmode_create.cpp (original)
+++ trunk/Scribus/scribus/canvasmode_create.cpp Tue Jul  1 20:12:19 2014
@@ -319,7 +319,11 @@
 			QRectF createObjectRect(createObjectPos.x(), createObjectPos.y(), wSize, hSize);
 			createObjectRect = createObjectRect.normalized();
 			if (createObjectMode != modeDrawLine)
-				m_canvas->displaySizeHUD(m->globalPos(), createObjectRect.width(), createObjectRect.height(), false);
+			{
+				if (modifiers == Qt::ControlModifier)
+					hSize=wSize;
+				m_canvas->displaySizeHUD(m->globalPos(), wSize, hSize, false);
+			}
 			else
 			{
 				double angle = -xy2Deg(wSize, hSize);




More information about the scribus-commit mailing list