summaryrefslogtreecommitdiffstats
path: root/src/widgets/text-toolbar.cpp
diff options
context:
space:
mode:
authorJohn Smith <john.smith7545@yahoo.com>2012-07-20 06:05:56 +0000
committerJohn Smith <john.smith7545@yahoo.com>2012-07-20 06:05:56 +0000
commitebdadb161372149ede63216ac02f4487a553cca7 (patch)
tree624b1567d40f9d5e00a006f98691967a9e35f292 /src/widgets/text-toolbar.cpp
parentExtensions. Removing the Replace Text extension (replaced with the new Find d... (diff)
downloadinkscape-ebdadb161372149ede63216ac02f4487a553cca7.tar.gz
inkscape-ebdadb161372149ede63216ac02f4487a553cca7.zip
Fix for 940578 : Max font size in toolbar font chooser
(bzr r11558)
Diffstat (limited to 'src/widgets/text-toolbar.cpp')
-rw-r--r--src/widgets/text-toolbar.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/widgets/text-toolbar.cpp b/src/widgets/text-toolbar.cpp
index 13274a175..779504633 100644
--- a/src/widgets/text-toolbar.cpp
+++ b/src/widgets/text-toolbar.cpp
@@ -360,6 +360,12 @@ static void sp_text_fontsize_value_changed( Ink_ComboBoxEntry_Action *act, GObje
}
g_free( text );
+ Inkscape::Preferences *prefs = Inkscape::Preferences::get();
+ int max_size = prefs->getInt("/dialogs/textandfont/maxFontSize", 10000); // somewhat arbitrary, but text&font preview freezes with too huge fontsizes
+
+ if (size > max_size)
+ size = max_size;
+
// Set css font size.
SPCSSAttr *css = sp_repr_css_attr_new ();
Inkscape::CSSOStringStream osfs;