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:
Jean-Marc Lasgouttes 2015-05-27 17:04:10 +02:00
parent ac271336dd
commit 0e64c8ab7a
2 changed files with 3 additions and 0 deletions

View File

@ -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();
}

View File

@ -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