r15639 by fschmid - Compile fix for compiling with PoDoFo 0.8.3. It compiles, but i'm not sure if it still works as it should, so please test it.

scribus-commit scribus-commit at lists.scribus.net
Sun Oct 24 17:50:19 CEST 2010


Author: fschmid
Date: Sun Oct 24 15:50:19 2010
New Revision: 15639

URL: http://scribus.info/websvn/listing.php?repname=Scribus&sc=1&rev=15639
Log:
Compile fix for compiling with PoDoFo 0.8.3. It compiles, but i'm not sure if it still works as it should, so please test it.

Modified:
    trunk/Scribus/scribus/pdf_analyzer.cpp

Modified: trunk/Scribus/scribus/pdf_analyzer.cpp
URL: http://scribus.info/websvn/diff.php?repname=Scribus&rev=15639&path=/trunk/Scribus/scribus/pdf_analyzer.cpp
==============================================================================
--- trunk/Scribus/scribus/pdf_analyzer.cpp (original)
+++ trunk/Scribus/scribus/pdf_analyzer.cpp Sun Oct 24 15:50:19 2010
@@ -743,11 +743,13 @@
 	PdfObject* dObj = extGStateObj->GetIndirectKey("D");
 	if (dObj)
 	{
-		PdfArray dashArr = dObj->GetArray()[0];
+		PdfObject dObjA = dObj->GetArray()[0];
+		PdfArray dashArr = dObjA.GetArray();
 		currGS.dashPattern.first.clear();
 		for (uint i=0; i<dashArr.GetSize(); ++i)
 			currGS.dashPattern.first.append(dashArr[i].GetNumber());
-		currGS.dashPattern.second = dObj->GetArray()[1].GetNumber();
+		PdfObject dObjB = dObj->GetArray()[1];
+		currGS.dashPattern.second = dObjB.GetNumber();
 	}
 }
 PDFFont PDFAnalyzer::getFontInfo(PdfObject* fontObj)




More information about the scribus-commit mailing list