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

scribus-commit scribus-commit at lists.scribus.net
Sat Apr 14 13:41:00 UTC 2012


Author: jghali
Date: Sat Apr 14 13:40:59 2012
New Revision: 17442

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

Modified:
    branches/Version14x/Scribus/scribus/canvasmode_create.cpp

Modified: branches/Version14x/Scribus/scribus/canvasmode_create.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=17442&path=/branches/Version14x/Scribus/scribus/canvasmode_create.cpp
==============================================================================
--- branches/Version14x/Scribus/scribus/canvasmode_create.cpp (original)
+++ branches/Version14x/Scribus/scribus/canvasmode_create.cpp Sat Apr 14 13:40:59 2012
@@ -589,9 +589,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)
+	{
+		//Lock Height to Width for Control Modifier for final item creation
+		if (modifiers == Qt::ControlModifier)
+			hSize = wSize;
+	}
 
 	PageItem *newObject = NULL, *currItem = NULL;
 	// FIXME for modeDrawLine




More information about the scribus-commit mailing list