r17207 by fschmid - Fixed the font replacement tab in the preferences.

scribus-commit scribus-commit at lists.scribus.net
Sun Jan 15 17:19:17 UTC 2012


Author: fschmid
Date: Sun Jan 15 17:19:17 2012
New Revision: 17207

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=17207
Log:
Fixed the font replacement tab in the preferences.

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

Modified: trunk/Scribus/scribus/ui/prefs_fonts.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=17207&path=/trunk/Scribus/scribus/ui/prefs_fonts.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/prefs_fonts.cpp (original)
+++ trunk/Scribus/scribus/ui/prefs_fonts.cpp Sun Jan 15 17:19:17 2012
@@ -50,6 +50,8 @@
 
 	fontListTableView->setModel(new FontListModel(fontListTableView));
 
+	fontSubstitutionsTableWidget->setRowCount(RList.count());
+	fontSubstitutionsTableWidget->setColumnCount(2);
 	fontSubstitutionsTableWidget->setHorizontalHeaderItem(0, new QTableWidgetItem( tr("Font Name")));
 	fontSubstitutionsTableWidget->setHorizontalHeaderItem(1, new QTableWidgetItem( tr("Replacement")));
 	fontSubstitutionsTableWidget->setSortingEnabled(false);
@@ -187,7 +189,6 @@
 		FlagsRepl.clear();
 		fontSubstitutionsTableWidget->clearContents();
 		m_GFontSub=prefsData->fontPrefs.GFontSub;
-		fontSubstitutionsTableWidget->setRowCount(m_GFontSub.count());
 		int a = 0;
 		QMap<QString,QString>::Iterator itfsu;
 		for (itfsu = RList.begin(); itfsu != RList.end(); ++itfsu)




More information about the scribus-commit mailing list