r20917 by jghali -

scribus-commit scribus-commit at lists.scribus.net
Sat Feb 6 23:54:58 UTC 2016


Author: jghali
Date: Sat Feb  6 23:54:58 2016
New Revision: 20917

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

Modified:
    trunk/Scribus/scribus/canvasmode_magnifier.cpp
    trunk/Scribus/scribus/canvasmode_magnifier.h

Modified: trunk/Scribus/scribus/canvasmode_magnifier.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20917&path=/trunk/Scribus/scribus/canvasmode_magnifier.cpp
==============================================================================
--- trunk/Scribus/scribus/canvasmode_magnifier.cpp	(original)
+++ trunk/Scribus/scribus/canvasmode_magnifier.cpp	Sat Feb  6 23:54:58 2016
@@ -55,6 +55,8 @@
 {
 	m_Mxp = m_Myp = -1;
 	m_Dxp = m_Dyp = -1;
+	m_SeRx = m_SeRy = -1;
+	m_lastPosWasOverGuide = false;
 }
 
 void CanvasMode_Magnifier::drawControls(QPainter* p)

Modified: trunk/Scribus/scribus/canvasmode_magnifier.h
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20917&path=/trunk/Scribus/scribus/canvasmode_magnifier.h
==============================================================================
--- trunk/Scribus/scribus/canvasmode_magnifier.h	(original)
+++ trunk/Scribus/scribus/canvasmode_magnifier.h	Sat Feb  6 23:54:58 2016
@@ -58,7 +58,7 @@
 
 	double m_Mxp, m_Myp, m_Dxp, m_Dyp;
 	double m_SeRx, m_SeRy;
-	bool m_lastPosWasOverGuide;
+	bool   m_lastPosWasOverGuide;
 };
 
 




More information about the scribus-commit mailing list