r22391 by jghali -
scribus-commit
scribus-commit at lists.scribus.net
Wed Feb 14 19:55:39 UTC 2018
Author: jghali
Date: Wed Feb 14 19:55:39 2018
New Revision: 22391
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=22391
Log:
minor code readability improvement
Modified:
trunk/Scribus/scribus/scribus.cpp
Modified: trunk/Scribus/scribus/scribus.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=22391&path=/trunk/Scribus/scribus/scribus.cpp
==============================================================================
--- trunk/Scribus/scribus/scribus.cpp (original)
+++ trunk/Scribus/scribus/scribus.cpp Wed Feb 14 19:55:39 2018
@@ -5418,10 +5418,11 @@
wot=doc->Pages->count();
qApp->setOverrideCursor(QCursor(Qt::WaitCursor));
view->updatesOn(false);
+ const PageSet& pageSet = doc->pageSets()[doc->pagePositioning()];
ScPage* currentPage = doc->currentPage();
for (cc = 0; cc < numPages; ++cc)
{
- slotNewPage(wot, base[(wot+doc->pageSets()[doc->pagePositioning()].FirstPage) % doc->pageSets()[doc->pagePositioning()].Columns], mov); //Avoid the master page application with QString::null
+ slotNewPage(wot, base[(wot + pageSet.FirstPage) % pageSet.Columns], mov); //Avoid the master page application with QString::null
// slotNewPage(wot, QString::null, mov); //Avoid the master page application with QString::null
//CB: #8212: added overrideMasterPageSizing, but keeping default to true for other calls for now, off for calls from InsPage
if (overrideMasterPageSizing)
More information about the scribus-commit
mailing list