From ebdadb161372149ede63216ac02f4487a553cca7 Mon Sep 17 00:00:00 2001 From: John Smith Date: Fri, 20 Jul 2012 15:05:56 +0900 Subject: Fix for 940578 : Max font size in toolbar font chooser (bzr r11558) --- src/widgets/text-toolbar.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/widgets/text-toolbar.cpp') 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; -- cgit v1.2.3