r21719 by craig - Fix Coverity issue 1350697: uninitialised variables

scribus-commit scribus-commit at lists.scribus.net
Sun Jan 8 17:40:42 UTC 2017


Author: craig
Date: Sun Jan  8 17:40:42 2017
New Revision: 21719

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=21719
Log:
Fix Coverity issue 1350697: uninitialised variables

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

Modified: trunk/Scribus/scribus/canvasmode.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=21719&path=/trunk/Scribus/scribus/canvasmode.cpp
==============================================================================
--- trunk/Scribus/scribus/canvasmode.cpp	(original)
+++ trunk/Scribus/scribus/canvasmode.cpp	Sun Jan  8 17:40:42 2017
@@ -80,7 +80,9 @@
 	m_canvas(view->m_canvas),
 	m_doc(view->Doc),
 	m_panGesture(NULL),
-	undoManager(UndoManager::instance())
+	undoManager(UndoManager::instance()),
+	xSnap(0.0),
+	ySnap(0.0)
 {
 	m_pen["outline"]	= QPen(Qt::gray, 1.0 , Qt::SolidLine, Qt::FlatCap, Qt::MiterJoin);
 	m_pen["outline"].setCosmetic(true);

Modified: trunk/Scribus/scribus/canvasmode.h
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=21719&path=/trunk/Scribus/scribus/canvasmode.h
==============================================================================
--- trunk/Scribus/scribus/canvasmode.h	(original)
+++ trunk/Scribus/scribus/canvasmode.h	Sun Jan  8 17:40:42 2017
@@ -153,7 +153,7 @@
 	ScribusDoc * const m_doc;
 	PanGesture * m_panGesture;
 	UndoManager* undoManager;
-	double xSnap,ySnap;
+	double xSnap, ySnap;
 	
 	void setResizeCursor(int how, double rot = 0.0);
 	bool commonMouseMove(QMouseEvent *m);




More information about the scribus-commit mailing list