summaryrefslogtreecommitdiffstats
path: root/src/ui/dialog/text-edit.cpp
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2014-10-15 18:56:16 +0000
committertavmjong-free <tavmjong@free.fr>2014-10-15 18:56:16 +0000
commit58989cdb66d715f968d4c3e77fd13532c92e1fda (patch)
tree3ae5fad83e24b42753aa14e117d06ff810abc40d /src/ui/dialog/text-edit.cpp
parentFix build (diff)
parentVarious small font things. (diff)
downloadinkscape-58989cdb66d715f968d4c3e77fd13532c92e1fda.tar.gz
inkscape-58989cdb66d715f968d4c3e77fd13532c92e1fda.zip
Font caching from experimental branch. Speeds up Inkscape start-up.
Most work by Liam. Various tweeks by Tav. (bzr r13617)
Diffstat (limited to 'src/ui/dialog/text-edit.cpp')
-rw-r--r--src/ui/dialog/text-edit.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ui/dialog/text-edit.cpp b/src/ui/dialog/text-edit.cpp
index a00db1715..9996fc0f9 100644
--- a/src/ui/dialog/text-edit.cpp
+++ b/src/ui/dialog/text-edit.cpp
@@ -343,9 +343,9 @@ void TextEdit::onReadSelection ( gboolean dostyle, gboolean /*docontent*/ )
Inkscape::FontLister* fontlister = Inkscape::FontLister::get_instance();
- // This is done for us by text-toolbar. No need to do it twice.
- // fontlister->update_font_list( sp_desktop_document( SP_ACTIVE_DESKTOP ));
- // fontlister->selection_update();
+ // This is normally done for us by text-toolbar but only when we are in text editing context
+ fontlister->update_font_list(sp_desktop_document(this->desktop));
+ fontlister->selection_update();
Glib::ustring fontspec = fontlister->get_fontspec();