r24259 by jghali - Fix multi-duplication of multiple selections when a rotation angle is used

scribus-commit scribus-commit at lists.scribus.net
Mon Nov 16 12:47:09 UTC 2020


Author: jghali
Date: Mon Nov 16 12:47:09 2020
New Revision: 24259

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=24259
Log:
Fix multi-duplication of multiple selections when a rotation angle is used

Modified:
    trunk/Scribus/scribus/scribusdoc.cpp

Modified: trunk/Scribus/scribus/scribusdoc.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24259&path=/trunk/Scribus/scribus/scribusdoc.cpp
==============================================================================
--- trunk/Scribus/scribus/scribusdoc.cpp	(original)
+++ trunk/Scribus/scribus/scribusdoc.cpp	Mon Nov 16 12:47:09 2020
@@ -13336,7 +13336,7 @@
 			if (dR != 0.0)
 			{
 				if (tempSelection.count() > 1)
-					rotateGroup(dR2, FPoint(0.0, 0.0), &tempSelection); //FIXME:av
+					rotateGroup(dR2, &tempSelection); //FIXME:av
 				else
 					rotateItem(dR2, tempSelection.itemAt(0));
 			}
@@ -14441,9 +14441,9 @@
 	if (this->m_rotMode == 2)
 		rotationPoint = FPoint(gx + gw / 2.0, gy + gh / 2.0);
 	if (this->m_rotMode == 3)
-		rotationPoint = FPoint(gx, gy+gh);
+		rotationPoint = FPoint(gx, gy + gh);
 	if (this->m_rotMode == 4)
-		rotationPoint = FPoint(gx+gw, gy+gh);
+		rotationPoint = FPoint(gx + gw, gy + gh);
 	rotateGroup(angle, rotationPoint, itemSelection);
 }
 




More information about the scribus-commit mailing list