r16610 by fschmid - Fixed rubberband selection for vertical and horizontal lines.

scribus-commit scribus-commit at lists.scribus.net
Sun May 1 08:00:59 UTC 2011


Author: fschmid
Date: Sun May  1 08:00:59 2011
New Revision: 16610

URL: http://scribus.info/websvn/listing.php?repname=Scribus&sc=1&rev=16610
Log:
Fixed rubberband selection for vertical and horizontal lines.

Modified:
    trunk/Scribus/scribus/pageitem.cpp

Modified: trunk/Scribus/scribus/pageitem.cpp
URL: http://scribus.info/websvn/diff.php?repname=Scribus&rev=16610&path=/trunk/Scribus/scribus/pageitem.cpp
==============================================================================
--- trunk/Scribus/scribus/pageitem.cpp (original)
+++ trunk/Scribus/scribus/pageitem.cpp Sun May  1 08:00:59 2011
@@ -5148,8 +5148,8 @@
 	{
 		*x1 = Xpos;
 		*y1 = Ypos;
-		*x2 = Xpos + qMax(Width, m_lineWidth);
-		*y2 = Ypos + qMax(Height, m_lineWidth);
+		*x2 = Xpos + qMax(1.0, qMax(Width, m_lineWidth));
+		*y2 = Ypos + qMax(1.0, qMax(Height, m_lineWidth));
 	}
 	QRectF totalRect = QRectF(QPointF(*x1, *y1), QPointF(*x2, *y2));
 	if (m_startArrowIndex != 0)




More information about the scribus-commit mailing list