commit 9705b8825172ff1158b7c1451eb1c0da214808a1
Author: Juergen Spitzmueller <[email protected]>
Date:   Sun Dec 16 12:29:15 2018 +0100

    Use current_font, not real_current_font, in character dialog
    
    The latter has the workarea font settings, which are not of interest
    here.
    
    Fixes: #11385
---
 src/frontends/qt4/GuiCharacter.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/frontends/qt4/GuiCharacter.cpp 
b/src/frontends/qt4/GuiCharacter.cpp
index 8b7f3e8..4b71f9e 100644
--- a/src/frontends/qt4/GuiCharacter.cpp
+++ b/src/frontends/qt4/GuiCharacter.cpp
@@ -401,7 +401,7 @@ lyx::FontState setMarkupState(Qt::CheckState cs)
 void GuiCharacter::updateContents()
 {
        if (bufferview()->cursor().selection()) {
-               Font font = bufferview()->cursor().real_current_font;
+               Font font = bufferview()->cursor().current_font;
                FontInfo fi = font.fontInfo();
                BufferParams const & bp = buffer().masterParams();
 
@@ -445,7 +445,7 @@ void GuiCharacter::updateContents()
                }
                font_ = font;
        } else
-               font_ = bufferview()->cursor().real_current_font;
+               font_ = bufferview()->cursor().current_font;
 
        paramsToDialog(font_);
 }

Reply via email to