From: Jean-Marc Lasgouttes Date: Mon, 3 Nov 2008 11:12:52 +0000 (+0000) Subject: Fix part of http://bugzilla.lyx.org/show_bug.cgi?id=5339 X-Git-Tag: 1.6.10~2743 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=7356fcd2cf5daabb311b710385b6ad2ae57acda3;p=features.git Fix part of http://bugzilla.lyx.org/show_bug.cgi?id=5339 * InsetInfo.cpp (updateInfo): insert the text using inherit_font so that there is not an extra \textsf output to LaTeX; change "shortcut" to display the first shortcut, not the last (if only to be consistent with menus). git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27234 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/insets/InsetInfo.cpp b/src/insets/InsetInfo.cpp index 57f63a9947..750b57f82c 100644 --- a/src/insets/InsetInfo.cpp +++ b/src/insets/InsetInfo.cpp @@ -285,11 +285,11 @@ void InsetInfo::updateInfo() break; } if (type_ == SHORTCUT_INFO) - setText(bindings.rbegin()->print(KeySequence::Portable), - Font(getLayout().font()), false); + setText(bindings.begin()->print(KeySequence::Portable), + Font(inherit_font), false); else setText(theTopLevelKeymap().printBindings(func, KeySequence::Portable), - Font(getLayout().font()), false); + Font(inherit_font), false); break; } case LYXRC_INFO: {