r18472 by jghali - fix uninitialized variable being used in PDF importer by initializing PDFPresentationData structure with sensible values
scribus-commit
scribus-commit at lists.scribus.net
Thu Sep 12 21:06:00 UTC 2013
Author: jghali
Date: Thu Sep 12 21:06:00 2013
New Revision: 18472
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=18472
Log:
fix uninitialized variable being used in PDF importer by initializing PDFPresentationData structure with sensible values
Modified:
trunk/Scribus/scribus/scribusstructs.h
Modified: trunk/Scribus/scribus/scribusstructs.h
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=18472&path=/trunk/Scribus/scribus/scribusstructs.h
==============================================================================
--- trunk/Scribus/scribus/scribusstructs.h (original)
+++ trunk/Scribus/scribus/scribusstructs.h Thu Sep 12 21:06:00 2013
@@ -172,6 +172,12 @@
struct PDFPresentationData
{
+ PDFPresentationData() {
+ pageEffectDuration = 1;
+ pageViewDuration = 1;
+ effectType = 0;
+ Dm = M = Di = 0;
+ }
int pageEffectDuration;
int pageViewDuration;
int effectType;
More information about the scribus-commit
mailing list