From: Juergen Spitzmueller Date: Sun, 16 Dec 2018 11:29:15 +0000 (+0100) Subject: Use current_font, not real_current_font, in character dialog X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=2b6ede6768c023ec692b8493e49b7ccb62d999ae;p=features.git 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 --- diff --git a/src/frontends/qt4/GuiCharacter.cpp b/src/frontends/qt4/GuiCharacter.cpp index 8b7f3e83d3..4b71f9e3d4 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_); }