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
This commit is contained in:
Juergen Spitzmueller 2018-12-16 12:29:15 +01:00
parent 2682170556
commit 9705b88251

View File

@ -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_);
}