r23736 by jghali - Fix coverity 1463185: Uninitialized scalar field

scribus-commit scribus-commit at lists.scribus.net
Sun May 10 14:51:13 UTC 2020


Author: jghali
Date: Sun May 10 14:51:13 2020
New Revision: 23736

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=23736
Log:
Fix coverity 1463185: Uninitialized scalar field

Modified:
    trunk/Scribus/scribus/pslib.h

Modified: trunk/Scribus/scribus/pslib.h
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23736&path=/trunk/Scribus/scribus/pslib.h
==============================================================================
--- trunk/Scribus/scribus/pslib.h	(original)
+++ trunk/Scribus/scribus/pslib.h	Sun May 10 14:51:13 2020
@@ -185,14 +185,14 @@
 		int  PageIndex { 0 };
 		QString FillColor;
 		QString StrokeColor;
-		double LineW;
+		double LineW { 1.0 };
 		QString FontDesc;
 		QMap<QString, QString> FontSubsetMap;
 		QFile Spool;
 		QDataStream spoolStream;
-		int  Plate;
+		int  Plate { -1 };
 		bool DoSep { false };
-		bool fillRule;
+		bool fillRule { true };
 		ScColorTransform solidTransform;
 		QString currentSpot;
 		ColorList colorsToUse;




More information about the scribus-commit mailing list