summaryrefslogtreecommitdiffstats
path: root/src/ui/dialog/text-edit.cpp
diff options
context:
space:
mode:
authorGeoff Lankow <geoff@darktrojan.net>2018-05-31 00:42:20 +0000
committerGeoff Lankow <geoff@darktrojan.net>2018-05-31 09:07:38 +0000
commitbf5e21b8fd1165ad0969897d49ee6b8dd6fbd30f (patch)
tree71356b72a90fdca519c315f630eb3838bd287d3b /src/ui/dialog/text-edit.cpp
parentAdd center mirror symmetry butons for perfect symmetry and rotate copyes cleanup (diff)
downloadinkscape-bf5e21b8fd1165ad0969897d49ee6b8dd6fbd30f.tar.gz
inkscape-bf5e21b8fd1165ad0969897d49ee6b8dd6fbd30f.zip
In font list, don't change selection if current font is already selected; other minor fixes
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 ff97bb68c..bc437fac2 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?.;/()"))
{
@@ -441,6 +441,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;
}