r16701 by jghali - #9182: Inserting pages lets Scribus jump to the wrong page in a document
scribus-commit
scribus-commit at lists.scribus.net
Sat Jul 2 20:34:07 UTC 2011
Author: jghali
Date: Sat Jul 2 20:34:06 2011
New Revision: 16701
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=16701
Log:
#9182: Inserting pages lets Scribus jump to the wrong page in a document
Modified:
trunk/Scribus/scribus/scribus.cpp
Modified: trunk/Scribus/scribus/scribus.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=16701&path=/trunk/Scribus/scribus/scribus.cpp
==============================================================================
--- trunk/Scribus/scribus/scribus.cpp (original)
+++ trunk/Scribus/scribus/scribus.cpp Sat Jul 2 20:34:06 2011
@@ -5541,6 +5541,7 @@
wot=doc->Pages->count();
qApp->changeOverrideCursor(QCursor(Qt::WaitCursor));
view->updatesOn(false);
+ Page* 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
@@ -5558,6 +5559,7 @@
// doc->currentPage()->pageNr(), false); // this Apply_MasterPage avoids DreawNew and PagePalette->ReBuild, which is much faster for 100 pp :-)
wot ++;
}
+ doc->setCurrentPage(currentPage);
view->updatesOn(true);
qApp->changeOverrideCursor(QCursor(Qt::ArrowCursor));
//Use wo, the dialog currently returns a page Index +1 due to old numbering scheme, function now does the -1 as required
More information about the scribus-commit
mailing list