r20755 by jghali -

scribus-commit scribus-commit at lists.scribus.net
Fri Jan 29 22:24:29 UTC 2016


Author: jghali
Date: Fri Jan 29 22:24:29 2016
New Revision: 20755

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=20755
Log:
fix uninitialized scalar field <coverity>

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

Modified: trunk/Scribus/scribus/canvasmode_drawbezier.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20755&path=/trunk/Scribus/scribus/canvasmode_drawbezier.cpp
==============================================================================
--- trunk/Scribus/scribus/canvasmode_drawbezier.cpp	(original)
+++ trunk/Scribus/scribus/canvasmode_drawbezier.cpp	Fri Jan 29 22:24:29 2016
@@ -62,9 +62,10 @@
 BezierMode::BezierMode(ScribusView* view) : CanvasMode(view) 
 {
 	Mxp = Myp = -1;
-	Dxp = Dyp = -1;
+	SeRx = SeRy = -1;
 	MoveGX = MoveGY = false;
 	inItemCreation = false;
+	m_MouseButtonPressed = false;
 	shiftSelItems = false;
 	FirstPoly = true;
 }
@@ -125,7 +126,6 @@
 {
 //	qDebug() << "DrawBezierMode::activate" << flag;
 	Mxp = Myp = -1;
-	Dxp = Dyp = -1;
 	MoveGX = MoveGY = false;
 	inItemCreation = false;
 	shiftSelItems = false;

Modified: trunk/Scribus/scribus/canvasmode_drawbezier.h
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20755&path=/trunk/Scribus/scribus/canvasmode_drawbezier.h
==============================================================================
--- trunk/Scribus/scribus/canvasmode_drawbezier.h	(original)
+++ trunk/Scribus/scribus/canvasmode_drawbezier.h	Fri Jan 29 22:24:29 2016
@@ -54,7 +54,7 @@
 
 	bool inItemCreation, shiftSelItems, FirstPoly;
 	bool m_MouseButtonPressed;
-	double Mxp, Myp, Dxp, Dyp;
+	double Mxp, Myp;
 	double SeRx, SeRy;
 	bool MoveGX, MoveGY;
 	FPointArray RecordP;




More information about the scribus-commit mailing list