]> git.lyx.org Git - features.git/commitdiff
Fix part of http://bugzilla.lyx.org/show_bug.cgi?id=5339
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 3 Nov 2008 11:12:52 +0000 (11:12 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 3 Nov 2008 11:12:52 +0000 (11:12 +0000)
* 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

index 57f63a9947f98fd8b4a6d2466003fcd367267621..750b57f82c5a4dacc48d57a8e3069385aa8c57dd 100644 (file)
@@ -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: {