r24590 by jghali - Fix restoring "Insert Pages" after undo creating pages with wrong size

scribus-commit scribus-commit at lists.scribus.net
Fri Mar 26 21:49:04 UTC 2021


Author: jghali
Date: Fri Mar 26 21:49:04 2021
New Revision: 24590

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=24590
Log:
Fix restoring "Insert Pages" after undo creating pages with wrong size

Modified:
    trunk/Scribus/scribus/scribus.cpp

Modified: trunk/Scribus/scribus/scribus.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24590&path=/trunk/Scribus/scribus/scribus.cpp
==============================================================================
--- trunk/Scribus/scribus/scribus.cpp	(original)
+++ trunk/Scribus/scribus/scribus.cpp	Fri Mar 26 21:49:04 2021
@@ -3144,7 +3144,7 @@
 	}
 	else if (dia->getCreatePageChecked())
 	{
-		int importWhere=dia->getImportWhere();
+		int importWhere = dia->getImportWhere();
 		if (importWhere == 0)
 			startPage = dia->getImportWherePage();
 		else if (importWhere == 1)
@@ -5156,8 +5156,8 @@
 	if (dia->exec())
 	{
 		QStringList base(dia->getMasterPages());
-		double height = dia->pageWidth();
-		double width = dia->pageHeight();
+		double width = dia->pageWidth();
+		double height = dia->pageHeight();
 		int orientation = dia->orientation();
 		addNewPages(dia->getWherePage(), dia->getWhere(), dia->getCount(), height, width, orientation, 
 			dia->prefsPageSizeName, dia->moveObjects(), &base, dia->overrideMasterPageSizing());




More information about the scribus-commit mailing list