r20909 by jghali -

scribus-commit scribus-commit at lists.scribus.net
Sat Feb 6 23:29:08 UTC 2016


Author: jghali
Date: Sat Feb  6 23:29:08 2016
New Revision: 20909

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

Modified:
    trunk/Scribus/scribus/ui/vruler.cpp
    trunk/Scribus/scribus/ui/vruler.h

Modified: trunk/Scribus/scribus/ui/vruler.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20909&path=/trunk/Scribus/scribus/ui/vruler.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/vruler.cpp	(original)
+++ trunk/Scribus/scribus/ui/vruler.cpp	Sat Feb  6 23:29:08 2016
@@ -35,15 +35,12 @@
 
 #include <cmath>
 
-
 #include "canvasgesture_rulermove.h"
 #include "prefsmanager.h"
 #include "scpage.h"
 #include "scribusdoc.h"
 #include "scribusview.h"
 #include "units.h"
-
-
 
 Vruler::Vruler(ScribusView *pa, ScribusDoc *doc) : QWidget(pa)
 {
@@ -59,6 +56,7 @@
 	oldMark = 0;
 	Mpressed = false;
 	drawMark = false;
+	whereToDraw = 0;
 	setMouseTracking(true);
 	rulerGesture = new RulerGesture(m_view, RulerGesture::VERTICAL);
 	unitChange();

Modified: trunk/Scribus/scribus/ui/vruler.h
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20909&path=/trunk/Scribus/scribus/ui/vruler.h
==============================================================================
--- trunk/Scribus/scribus/ui/vruler.h	(original)
+++ trunk/Scribus/scribus/ui/vruler.h	Sat Feb  6 23:29:08 2016
@@ -46,7 +46,6 @@
 	~Vruler() {};
 	
 	double offs;
-	bool repainted;
 	int oldMark;
 	bool Mpressed;
 	double ruleSpacing();




More information about the scribus-commit mailing list