mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-29 05:01:49 +00:00
LFUN_TEXTSTYLE_UPDATE: Do not force any unspecified settings.
Fixes: #11111 (yay!)
This commit is contained in:
parent
712b9c5457
commit
2f9876a410
@ -2390,7 +2390,7 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd)
|
|||||||
// Set the freefont using the contents of \param data dispatched from
|
// Set the freefont using the contents of \param data dispatched from
|
||||||
// the frontends and apply it at the current cursor location.
|
// the frontends and apply it at the current cursor location.
|
||||||
case LFUN_TEXTSTYLE_UPDATE: {
|
case LFUN_TEXTSTYLE_UPDATE: {
|
||||||
Font font;
|
Font font(ignore_font, ignore_language);
|
||||||
bool toggle;
|
bool toggle;
|
||||||
if (font.fromString(to_utf8(cmd.argument()), toggle)) {
|
if (font.fromString(to_utf8(cmd.argument()), toggle)) {
|
||||||
docstring const props = font.stateText(&bv->buffer().params(), true);
|
docstring const props = font.stateText(&bv->buffer().params(), true);
|
||||||
|
Loading…
Reference in New Issue
Block a user