r20805 by jghali -
scribus-commit
scribus-commit at lists.scribus.net
Sat Jan 30 21:23:50 UTC 2016
Author: jghali
Date: Sat Jan 30 21:23:50 2016
New Revision: 20805
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=20805
Log:
coverity: "array compared against 0" errors in Scribus150Format
Modified:
trunk/Scribus/scribus/plugins/fileloader/scribus150format/scribus150format.cpp
Modified: trunk/Scribus/scribus/plugins/fileloader/scribus150format/scribus150format.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20805&path=/trunk/Scribus/scribus/plugins/fileloader/scribus150format/scribus150format.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/fileloader/scribus150format/scribus150format.cpp (original)
+++ trunk/Scribus/scribus/plugins/fileloader/scribus150format/scribus150format.cpp Sat Jan 30 21:23:50 2016
@@ -3222,7 +3222,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
@@ -6018,7 +6018,7 @@
if (UndoManager::undoEnabled())
{
ss = new SimpleState(Um::ChangePageAttrs, "", Um::ICreate);
- ss->set("PAGE_ATTRS", "page_attrs");
+ ss->set("PAGE_ATTRS");
ss->set("LEFT_OLD", newPage->LeftPg);
ss->set("NAME_OLD", newPage->pageName());
ss->set("ORIENTATION_OLD", newPage->orientation());
More information about the scribus-commit
mailing list