r20904 by jghali -

scribus-commit scribus-commit at lists.scribus.net
Sat Feb 6 23:06:56 UTC 2016


Author: jghali
Date: Sat Feb  6 23:06:56 2016
New Revision: 20904

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=20904
Log:
coverity #1350775: uninitialized scalar field

Modified:
    trunk/Scribus/scribus/ui/measurements.cpp

Modified: trunk/Scribus/scribus/ui/measurements.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20904&path=/trunk/Scribus/scribus/ui/measurements.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/measurements.cpp	(original)
+++ trunk/Scribus/scribus/ui/measurements.cpp	Sat Feb  6 23:06:56 2016
@@ -14,6 +14,12 @@
 Measurements::Measurements( QWidget* parent ) : ScrPaletteBase( parent, "MeasurementsPalette", false, 0 )
 {
 	setupUi(this);
+
+	mX1 = mY1 = 0;
+	mX2 = mY2 = 0;
+	mDX = mDY = 0;
+	mLength = 0;
+
 	const QString widthString="10000.0000";
 	int textWidth = fontMetrics().width(widthString);
 	x1Data->setMinimumSize(textWidth, 12);




More information about the scribus-commit mailing list