]> git.lyx.org Git - lyx.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>
Thu, 27 Dec 2018 14:30:57 +0000 (15:30 +0100)
Fixes: #11111 (yay!)
src/Text3.cpp

index b06b0f7611b073808b728701a3ecd585eac4b102..7b8f2f9a2a746f5567d49325c0146cee4988ae46 100644 (file)
@@ -2390,7 +2390,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)) {
                        docstring const props = font.stateText(&bv->buffer().params(), true);