r17443 by jghali - fix regression when creating lines with constrained angle introduced by #8562 fix (r17392)

scribus-commit scribus-commit at lists.scribus.net
Sat Apr 14 13:44:20 UTC 2012


Author: jghali
Date: Sat Apr 14 13:44:20 2012
New Revision: 17443

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=17443
Log:
fix regression when creating lines with constrained angle introduced by #8562 fix (r17392)

Modified:
    trunk/Scribus/scribus/canvasmode_create.cpp

Modified: trunk/Scribus/scribus/canvasmode_create.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=17443&path=/trunk/Scribus/scribus/canvasmode_create.cpp
==============================================================================
--- trunk/Scribus/scribus/canvasmode_create.cpp (original)
+++ trunk/Scribus/scribus/canvasmode_create.cpp Sat Apr 14 13:44:20 2012
@@ -605,8 +605,12 @@
 	wSize = canvasCurrCoord.x() - createObjectPos.x();
 	hSize = canvasCurrCoord.y() - createObjectPos.y();
 	//Lock Height to Width for Control Modifier for final item creation
-	if (modifiers == Qt::ControlModifier)
-		hSize=wSize;
+	if (createObjectMode != modeDrawLine)
+	{
+		if (modifiers == Qt::ControlModifier)
+			hSize = wSize;
+	}
+
 	PageItem *newObject = NULL, *currItem = NULL;
 	// FIXME for modeDrawLine
 	QRectF createObjectRect(createObjectPos.x(), createObjectPos.y(), wSize, hSize);




More information about the scribus-commit mailing list