From: Jean-Marc Lasgouttes Date: Wed, 5 Nov 2008 16:40:18 +0000 (+0000) Subject: Make sure that the contents of the inset uses the buffer language (in order to X-Git-Tag: 1.6.10~2716 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=4e2c8c4f9b84a0ca1fae3fecd164f5ab16005e5c;p=features.git Make sure that the contents of the inset uses the buffer language (in order to avoid the ugly blue line). Fixes part of http://bugzilla.lyx.org/show_bug.cgi?id=5348 git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27267 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/insets/InsetInfo.cpp b/src/insets/InsetInfo.cpp index db47b20074..34e1d3d7f7 100644 --- a/src/insets/InsetInfo.cpp +++ b/src/insets/InsetInfo.cpp @@ -251,13 +251,14 @@ void InsetInfo::setInfo(string const & name) void InsetInfo::error(string const & err) { - setText(bformat(_(err), from_utf8(name_)), Font(inherit_font), false); + setText(bformat(_(err), from_utf8(name_)), + Font(inherit_font, buffer().params().language), false); } void InsetInfo::setText(docstring const & str) { - setText(str, Font(inherit_font), false); + setText(str, Font(inherit_font, buffer().params().language), false); } @@ -283,11 +284,9 @@ void InsetInfo::updateInfo() break; } if (type_ == SHORTCUT_INFO) - setText(bindings.begin()->print(KeySequence::Portable), - Font(inherit_font), false); + setText(bindings.begin()->print(KeySequence::Portable)); else - setText(theTopLevelKeymap().printBindings(func, KeySequence::Portable), - Font(inherit_font), false); + setText(theTopLevelKeymap().printBindings(func, KeySequence::Portable)); break; } case LYXRC_INFO: { @@ -326,7 +325,7 @@ void InsetInfo::updateInfo() // if found, return its path. clear(); Paragraph & par = paragraphs().front(); - Font const f = Font(getLayout().font()); + Font const f(inherit_font, buffer().params().language); //Font fu = f; //fu.fontInfo().setUnderbar(FONT_ON); docstring_list::const_iterator beg = names.begin();