mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Fix bad font toggling after the layout has been changed.
When changing the paragraph layout, it is a good idea to call {{{Cursor::setCurrentFont()}}} to make sure that all is in order. Fixes bug #4394.
This commit is contained in:
parent
ac271336dd
commit
0e64c8ab7a
@ -200,6 +200,7 @@ void Text::setLayout(Cursor & cur, docstring const & layout)
|
||||
pit_type end = cur.selEnd().pit() + 1;
|
||||
cur.recordUndoSelection();
|
||||
setLayout(start, end, layout);
|
||||
cur.setCurrentFont();
|
||||
cur.forceBufferUpdate();
|
||||
}
|
||||
|
||||
|
@ -158,6 +158,8 @@ What's new
|
||||
|
||||
- Fix cursor font after undoing a font-changing command (bug 9537).
|
||||
|
||||
- Fix bad cursor font in some cases after changing layout (bug 4394).
|
||||
|
||||
- Fix name and hint of figure captions in documents using the class aastex.
|
||||
|
||||
- Fix output encoding information for non-TeX fonts XeTeX/LuaTeX on preview
|
||||
|
Loading…
Reference in New Issue
Block a user