summaryrefslogtreecommitdiffstats
path: root/src/widgets/font-selector.cpp
diff options
context:
space:
mode:
authorLiam P. White <inkscapebrony@gmail.com>2014-08-17 02:47:53 +0000
committerLiam P. White <inkscapebrony@gmail.com>2014-08-17 02:47:53 +0000
commit2a2db8af11c2e518bd7bfe520e2f88a7e439d939 (patch)
treebdbf9071af198a9b54d698eef9d6a1b77f857d73 /src/widgets/font-selector.cpp
parentAdd 'Show handles' LPE (diff)
downloadinkscape-2a2db8af11c2e518bd7bfe520e2f88a7e439d939.tar.gz
inkscape-2a2db8af11c2e518bd7bfe520e2f88a7e439d939.zip
Merge in font-speedup branch to improve launch times
(bzr r13341.1.140)
Diffstat (limited to 'src/widgets/font-selector.cpp')
-rw-r--r--src/widgets/font-selector.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/widgets/font-selector.cpp b/src/widgets/font-selector.cpp
index ccaf93e55..c9a52ef11 100644
--- a/src/widgets/font-selector.cpp
+++ b/src/widgets/font-selector.cpp
@@ -303,6 +303,9 @@ static void sp_font_selector_family_select_row(GtkTreeSelection *selection,
GtkTreeModel *model;
GtkTreeIter iter;
if (!gtk_tree_selection_get_selected (selection, &model, &iter)) return;
+
+ Inkscape::FontLister *fontlister = Inkscape::FontLister::get_instance();
+ fontlister->ensureRowStyles(model, &iter);
// Next get family name with its style list
gchar *family;
@@ -310,7 +313,6 @@ static void sp_font_selector_family_select_row(GtkTreeSelection *selection,
gtk_tree_model_get (model, &iter, 0, &family, 1, &list, -1);
// Find best style match for selected family with current style (e.g. of selected text).
- Inkscape::FontLister *fontlister = Inkscape::FontLister::get_instance();
Glib::ustring style = fontlister->get_font_style();
Glib::ustring best = fontlister->get_best_style_match (family, style);