]> git.lyx.org Git - features.git/blobdiff - src/Text2.cpp
The way this was done here is inconsistent with how it is done
[features.git] / src / Text2.cpp
index 7b3d4da8c614a6c7372f77f3f5a690eb19dfae6e..5a41761c301f29013e7df7244a9160e4aa90ccee 100644 (file)
@@ -199,6 +199,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();
 }