r20804 by jghali -

scribus-commit scribus-commit at lists.scribus.net
Sat Jan 30 21:23:26 UTC 2016


Author: jghali
Date: Sat Jan 30 21:23:26 2016
New Revision: 20804

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=20804
Log:
coverity: "array compared against 0" errors in Scribus134Format

Modified:
    trunk/Scribus/scribus/plugins/fileloader/scribus134format/scribus134format.cpp

Modified: trunk/Scribus/scribus/plugins/fileloader/scribus134format/scribus134format.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20804&path=/trunk/Scribus/scribus/plugins/fileloader/scribus134format/scribus134format.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/fileloader/scribus134format/scribus134format.cpp	(original)
+++ trunk/Scribus/scribus/plugins/fileloader/scribus134format/scribus134format.cpp	Sat Jan 30 21:23:26 2016
@@ -1644,7 +1644,7 @@
 	doc->Print_Options.bleedMarks   = attrs.valueAsBool("bleedMarks");
 	doc->Print_Options.registrationMarks = attrs.valueAsBool("registrationMarks");
 	doc->Print_Options.colorMarks   = attrs.valueAsBool("colorMarks");
-	doc->Print_Options.includePDFMarks = attrs.valueAsBool("includePDFMarks", "1");
+	doc->Print_Options.includePDFMarks = attrs.valueAsBool("includePDFMarks", true);
 	if (attrs.hasAttribute("PrintEngine"))
 		doc->Print_Options.prnEngine = (PrintEngine) attrs.valueAsInt("PrintEngine", 3);
 	else




More information about the scribus-commit mailing list