r15444 by craig - #9332: fix out of order pages in PDF

scribus-commit scribus-commit at lists.scribus.net
Fri Aug 27 01:06:07 CEST 2010


Author: craig
Date: Thu Aug 26 23:06:06 2010
New Revision: 15444

URL: http://scribus.info/websvn/listing.php?repname=Scribus&sc=1&rev=15444
Log:
#9332: fix out of order pages in PDF

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

Modified: trunk/Scribus/scribus/pdflib_core.cpp
URL: http://scribus.info/websvn/diff.php?repname=Scribus&rev=15444&path=/trunk/Scribus/scribus/pdflib_core.cpp
==============================================================================
--- trunk/Scribus/scribus/pdflib_core.cpp (original)
+++ trunk/Scribus/scribus/pdflib_core.cpp Thu Aug 26 23:06:06 2010
@@ -237,7 +237,7 @@
 			qApp->processEvents();
 			if (abortExport) break;
 
-			PDF_End_Page();
+			PDF_End_Page(a);
 			pc_exportpages++;
 			if (usingGUI)
 			{
@@ -2681,7 +2681,7 @@
 	}
 }
 
-void PDFLibCore::PDF_End_Page()
+void PDFLibCore::PDF_End_Page(int physPage)
 {
 	uint PgNr =  ActPageP->pageNr();
 	double markOffs = 0.0;
@@ -3067,7 +3067,7 @@
 	}
 	PutDoc(">>\nendobj\n");
 	PageTree.Count++;
-	PageTree.Kids[PgNr] = pageObject;
+	PageTree.Kids[physPage] = pageObject;
 }
 
 

Modified: trunk/Scribus/scribus/pdflib_core.h
URL: http://scribus.info/websvn/diff.php?repname=Scribus&rev=15444&path=/trunk/Scribus/scribus/pdflib_core.h
==============================================================================
--- trunk/Scribus/scribus/pdflib_core.h (original)
+++ trunk/Scribus/scribus/pdflib_core.h Thu Aug 26 23:06:06 2010
@@ -82,7 +82,7 @@
 
 	bool PDF_Begin_Doc(const QString& fn, SCFonts &AllFonts, QMap<QString, QMap<uint, FPointArray> > DocFonts, BookMView* vi);
 	void PDF_Begin_Page(const Page* pag, QPixmap pm = 0);
-	void PDF_End_Page();
+	void PDF_End_Page(int physPage);
 	bool PDF_TemplatePage(const Page* pag, bool clip = false);
 	bool PDF_ProcessPage(const Page* pag, uint PNr, bool clip = false);
 	bool PDF_ProcessMasterElements(const ScLayer& layer, const Page* page, uint PNr);




More information about the scribus-commit mailing list