summaryrefslogtreecommitdiffstats
path: root/src/ui/dialog/text-edit.cpp
diff options
context:
space:
mode:
authorMarc Jeanmougin <marc@jeanmougin.fr>2018-06-14 18:16:30 +0000
committerMarc Jeanmougin <marc@jeanmougin.fr>2018-06-14 18:16:30 +0000
commit3a70f80a739cb2dc9e9ed5b00c2ea10454e94c05 (patch)
treee7d7a510dd21581b047d40235327295737c1b0bc /src/ui/dialog/text-edit.cpp
parentMerge branch 'fontmarkup' of gitlab.com:darktrojan/inkscape (diff)
parentIn font list, don't change selection if current font is already selected; oth... (diff)
downloadinkscape-3a70f80a739cb2dc9e9ed5b00c2ea10454e94c05.tar.gz
inkscape-3a70f80a739cb2dc9e9ed5b00c2ea10454e94c05.zip
Merge branch 'fontselection' of gitlab.com:darktrojan/inkscape
Diffstat (limited to 'src/ui/dialog/text-edit.cpp')
-rw-r--r--src/ui/dialog/text-edit.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ui/dialog/text-edit.cpp b/src/ui/dialog/text-edit.cpp
index fca65a1ba..5cb0993c6 100644
--- a/src/ui/dialog/text-edit.cpp
+++ b/src/ui/dialog/text-edit.cpp
@@ -74,12 +74,12 @@ TextEdit::TextEdit()
selectChangedConn(),
subselChangedConn(),
selectModifiedConn(),
+ blocked(false),
/*
TRANSLATORS: Test string used in text and font dialog (when no
* text has been entered) to get a preview of the font. Choose
* some representative characters that users of your locale will be
* interested in.*/
- blocked(false),
samplephrase(_("AaBbCcIiPpQq12369$\342\202\254\302\242?.;/()"))
{
@@ -458,6 +458,10 @@ void TextEdit::onApply()
apply_button.set_sensitive ( false );
sp_repr_css_attr_unref (css);
+
+ Inkscape::FontLister* font_lister = Inkscape::FontLister::get_instance();
+ font_lister->update_font_list(SP_ACTIVE_DESKTOP->getDocument());
+
blocked = false;
}