r20852 by jghali -

scribus-commit scribus-commit at lists.scribus.net
Mon Feb 1 12:45:01 UTC 2016


Author: jghali
Date: Mon Feb  1 12:45:01 2016
New Revision: 20852

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=20852
Log:
coverity #1350806: uninitialized scaler field

Modified:
    trunk/Scribus/scribus/plugins/import/wpg/importwpg.cpp

Modified: trunk/Scribus/scribus/plugins/import/wpg/importwpg.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20852&path=/trunk/Scribus/scribus/plugins/import/wpg/importwpg.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/import/wpg/importwpg.cpp	(original)
+++ trunk/Scribus/scribus/plugins/import/wpg/importwpg.cpp	Mon Feb  1 12:45:01 2016
@@ -424,11 +424,15 @@
 
 WpgPlug::WpgPlug(ScribusDoc* doc, int flags)
 {
-	tmpSel=new Selection(this, false);
-	m_Doc=doc;
+	baseX = baseY = 0;
+	docWidth = docHeight = 1;
+
+	tmpSel = new Selection(this, false);
+	m_Doc = doc;
 	importerFlags = flags;
 	interactive = (flags & LoadSavePlugin::lfInteractive);
 	progressDialog = NULL;
+	cancel = false;
 }
 
 QImage WpgPlug::readThumbnail(QString fName)




More information about the scribus-commit mailing list