]> git.lyx.org Git - features.git/commitdiff
LFUN_TEXTSTYLE_UPDATE: Do not force any unspecified settings.
authorJuergen Spitzmueller <spitz@lyx.org>
Thu, 27 Dec 2018 14:29:23 +0000 (15:29 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Sat, 29 Dec 2018 08:38:39 +0000 (09:38 +0100)
Fixes: #11111 (yay!)
(cherry picked from commit 2f9876a4102add659f42d0055ac6a6c23c764736)

src/Text3.cpp
status.23x

index 8bd5d10e6b624d6231c49322517cec1d69906b0c..e246705c5e459021752c9009dbad43edf6f5903a 100644 (file)
@@ -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;
index d8214a6fb67e83e5a08fefd9af11aee9ee895b47..8af1b1bea60cc3ca7a1d9e5ab024dba2dd7bb120 100644 (file)
@@ -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