r22433 by jghali - small refactoring

scribus-commit scribus-commit at lists.scribus.net
Wed Mar 14 01:31:35 UTC 2018


Author: jghali
Date: Wed Mar 14 01:31:35 2018
New Revision: 22433

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=22433
Log:
small refactoring

Modified:
    trunk/Scribus/scribus/pdflib_core.cpp

Modified: trunk/Scribus/scribus/pdflib_core.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=22433&path=/trunk/Scribus/scribus/pdflib_core.cpp
==============================================================================
--- trunk/Scribus/scribus/pdflib_core.cpp	(original)
+++ trunk/Scribus/scribus/pdflib_core.cpp	Wed Mar 14 01:31:35 2018
@@ -11059,9 +11059,9 @@
 		QList<PdfDest>::Iterator vt;
 		for (vt = NamedDest.begin(); vt != NamedDest.end(); ++vt)
 		{
-			if (PageTree.Kids.contains((*vt).PageNr))
-				PutDoc(Pdf::toName((*vt).Name) + " [" + Pdf::toObjRef(PageTree.Kids[(*vt).PageNr])
-				       + " /XYZ " + Pdf::toPdfDocEncoding((*vt).Act) + "]\n");
+			if (PageTree.Kids.contains(vt->PageNr))
+				PutDoc(Pdf::toName(vt->Name) + " [" + Pdf::toObjRef(PageTree.Kids[vt->PageNr])
+				       + " /XYZ " + Pdf::toPdfDocEncoding(vt->Act) + "]\n");
 		}
 	}
 	PutDoc(">>");




More information about the scribus-commit mailing list