r23264 by jghali - Remove unused rotationMode(int) signal from ScribusDoc

scribus-commit scribus-commit at lists.scribus.net
Thu Oct 17 20:00:27 UTC 2019


Author: jghali
Date: Thu Oct 17 20:00:27 2019
New Revision: 23264

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=23264
Log:
Remove unused rotationMode(int) signal from ScribusDoc

Modified:
    trunk/Scribus/scribus/scribusdoc.cpp
    trunk/Scribus/scribus/scribusdoc.h

Modified: trunk/Scribus/scribus/scribusdoc.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23264&path=/trunk/Scribus/scribus/scribusdoc.cpp
==============================================================================
--- trunk/Scribus/scribus/scribusdoc.cpp	(original)
+++ trunk/Scribus/scribus/scribusdoc.cpp	Thu Oct 17 20:00:27 2019
@@ -14810,11 +14810,10 @@
 				QTransform ma3;
 				ma3.translate(gx, gy);
 				ma3.scale(scx, scy);
-				FPoint n(gx - oldPos.x(), gy - oldPos.y());
+				FPoint n(oldPos.x() - gx, oldPos.y() - gy);
 				double x = ma3.m11() * n.x() + ma3.m21() * n.y() + ma3.dx();
 				double y = ma3.m22() * n.y() + ma3.m12() * n.x() + ma3.dy();
-				//moveItem(gx - x, gy - y, item);
-				item->moveBy(gx - x, gy - y);
+				item->moveBy(x - gx, y - gy);
 			}
 			if (oldRot != 0)
 			{
@@ -16113,13 +16112,11 @@
 	return m_tserializer;
 }
 
-
 void ScribusDoc::setRotationMode(int val)
 {
 	if (m_rotMode == val)
 		return;
 	m_rotMode = val;
-	emit rotationMode(m_rotMode);
 }
 
 void ScribusDoc::setPageSetFirstPage(int layout, int fp)

Modified: trunk/Scribus/scribus/scribusdoc.h
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23264&path=/trunk/Scribus/scribus/scribusdoc.h
==============================================================================
--- trunk/Scribus/scribus/scribusdoc.h	(original)
+++ trunk/Scribus/scribus/scribusdoc.h	Thu Oct 17 20:00:27 2019
@@ -1453,8 +1453,6 @@
 	//! Temporary signal for SizeItem
 	void widthAndHeight(double, double);
 
-	//! Signal a change in rotation mode (aka basepoint)
-	void rotationMode(int);
 	void updateEditItem();
 	void updateAutoSaveClock();
 	void addBookmark(PageItem *);




More information about the scribus-commit mailing list