r23266 by jghali - #12118: Resizing rotated items going over 0 width/height behaves strangely

scribus-commit scribus-commit at lists.scribus.net
Fri Oct 18 06:50:10 UTC 2019


Author: jghali
Date: Fri Oct 18 06:50:10 2019
New Revision: 23266

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=23266
Log:
#12118: Resizing rotated items going over 0 width/height behaves strangely

Modified:
    trunk/Scribus/scribus/canvasgesture_resize.cpp

Modified: trunk/Scribus/scribus/canvasgesture_resize.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23266&path=/trunk/Scribus/scribus/canvasgesture_resize.cpp
==============================================================================
--- trunk/Scribus/scribus/canvasgesture_resize.cpp	(original)
+++ trunk/Scribus/scribus/canvasgesture_resize.cpp	Fri Oct 18 06:50:10 2019
@@ -467,7 +467,6 @@
 {
 	QTransform rotation;
 	FPoint docPoint = m_canvas->globalToCanvas(m->globalPos());
-	QPointF oldXY = m_bounds.normalized().topLeft();
 
 	// proportional resize
 	bool constrainRatio = ((m->modifiers() & Qt::ControlModifier) != Qt::NoModifier);
@@ -670,7 +669,7 @@
 	}
 
 	// re-rotate: if top left has changed, then it needs rotation
-	if (m_rotation != 0 && oldXY != m_bounds.topLeft())
+	if (m_rotation != 0)
 	{
 		m_bounds.moveTo(rotation.map(m_bounds.topLeft()));
 		// fix opposite corner to avoid aggregating rounding errors




More information about the scribus-commit mailing list