r20776 by jghali -

scribus-commit scribus-commit at lists.scribus.net
Sat Jan 30 15:34:18 UTC 2016


Author: jghali
Date: Sat Jan 30 15:34:18 2016
New Revision: 20776

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

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

Modified: trunk/Scribus/scribus/ui/prefs_fonts.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20776&path=/trunk/Scribus/scribus/ui/prefs_fonts.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/prefs_fonts.cpp	(original)
+++ trunk/Scribus/scribus/ui/prefs_fonts.cpp	Sat Jan 30 15:34:18 2016
@@ -45,6 +45,8 @@
 	RList = PrefsManager::instance()->appPrefs.fontPrefs.GFontSub;
 	UsedFonts.clear();
 	CurrentPath = "";
+	m_askBeforeSubstitute = true;
+
 	setMinimumSize(fontMetrics().width( tr( "Available Fonts" )+ tr( "Font Substitutions" )+ tr( "Additional Paths" ))+180, 200);
 
 	fontListTableView->setModel(new FontListModel(fontListTableView, m_doc));

Modified: trunk/Scribus/scribus/ui/prefs_fonts.h
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20776&path=/trunk/Scribus/scribus/ui/prefs_fonts.h
==============================================================================
--- trunk/Scribus/scribus/ui/prefs_fonts.h	(original)
+++ trunk/Scribus/scribus/ui/prefs_fonts.h	Sat Jan 30 15:34:18 2016
@@ -50,7 +50,6 @@
 		QString CurrentPath;
 		ScribusDoc* m_doc;
 
-
 		SCFonts m_availFonts; //! Fonts that Scribus has available to it, or the current document has available to use
 		bool m_askBeforeSubstitute; //! Request that the user confirms a font substitution or not
 		QMap<QString,QString> m_GFontSub;




More information about the scribus-commit mailing list