From 7356fcd2cf5daabb311b710385b6ad2ae57acda3 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Mon, 3 Nov 2008 11:12:52 +0000 Subject: [PATCH] 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 --- src/insets/InsetInfo.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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: { -- 2.39.2