When using InsetText::edit(), invoke Cursor::setCurrentFont (note that
editXY does it already). It is a good idea in general, especially
after commit
411333fa95, which sets languagecorrectly in ERT.
This allows to comment out (again!) the trick added to fix ticket #9042.
}
cur.top().setPitPos(pit, pos);
}
cur.top().setPitPos(pit, pos);
{
LYXERR(Debug::ACTION, "InsetText::doDispatch(): cmd: " << cmd);
{
LYXERR(Debug::ACTION, "InsetText::doDispatch(): cmd: " << cmd);
// See bug #9042, for instance.
if (isPassThru()) {
// Force any new text to latex_language FIXME: This
// See bug #9042, for instance.
if (isPassThru()) {
// Force any new text to latex_language FIXME: This
cur.current_font.setLanguage(latex_language);
cur.real_current_font.setLanguage(latex_language);
}
cur.current_font.setLanguage(latex_language);
cur.real_current_font.setLanguage(latex_language);
}
switch (cmd.action()) {
case LFUN_PASTE:
switch (cmd.action()) {
case LFUN_PASTE: