r20885 by jghali -
scribus-commit
scribus-commit at lists.scribus.net
Tue Feb 2 21:52:11 UTC 2016
Author: jghali
Date: Tue Feb 2 21:52:11 2016
New Revision: 20885
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=20885
Log:
coverity #1350706: uninitialized scalar field
Modified:
trunk/Scribus/scribus/ui/prefs_documentsetup.cpp
trunk/Scribus/scribus/ui/prefs_documentsetup.h
Modified: trunk/Scribus/scribus/ui/prefs_documentsetup.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20885&path=/trunk/Scribus/scribus/ui/prefs_documentsetup.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/prefs_documentsetup.cpp (original)
+++ trunk/Scribus/scribus/ui/prefs_documentsetup.cpp Tue Feb 2 21:52:11 2016
@@ -22,6 +22,9 @@
m_doc(doc)
{
setupUi(this);
+
+ unitRatio = 1.0;
+ pageW = pageH = 1.0;
if (!m_doc)
{
Modified: trunk/Scribus/scribus/ui/prefs_documentsetup.h
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20885&path=/trunk/Scribus/scribus/ui/prefs_documentsetup.h
==============================================================================
--- trunk/Scribus/scribus/ui/prefs_documentsetup.h (original)
+++ trunk/Scribus/scribus/ui/prefs_documentsetup.h Tue Feb 2 21:52:11 2016
@@ -61,7 +61,6 @@
ScribusDoc* m_doc;
double unitRatio;
- int choosenLayout;
double pageW;
double pageH;
QString prefsPageSizeName;
More information about the scribus-commit
mailing list