From 35f0117b5fbeee20e49e0b1e46f1ac938ae84afb Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Thu, 27 Dec 2018 15:29:23 +0100 Subject: [PATCH] LFUN_TEXTSTYLE_UPDATE: Do not force any unspecified settings. Fixes: #11111 (yay!) (cherry picked from commit 2f9876a4102add659f42d0055ac6a6c23c764736) --- src/Text3.cpp | 2 +- status.23x | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Text3.cpp b/src/Text3.cpp index 8bd5d10e6b..e246705c5e 100644 --- a/src/Text3.cpp +++ b/src/Text3.cpp @@ -2368,7 +2368,7 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd) // Set the freefont using the contents of \param data dispatched from // the frontends and apply it at the current cursor location. case LFUN_TEXTSTYLE_UPDATE: { - Font font; + Font font(ignore_font, ignore_language); bool toggle; if (font.fromString(to_utf8(cmd.argument()), toggle)) { freefont = font; diff --git a/status.23x b/status.23x index d8214a6fb6..8af1b1bea6 100644 --- a/status.23x +++ b/status.23x @@ -44,6 +44,9 @@ What's new - Fix regression where spaces are disappearing when editing text (bug 11412). +- The function textstyle-update now only changes explicitly stated font + attributes (bug 11111). + * DOCUMENTATION AND LOCALIZATION -- 2.39.5