break;
default:
- if (getLayout().isForceLtr()) {
- // Force any new text to latex_language
- // FIXME: This should only be necessary in constructor, but
- // new paragraphs that are created by pressing enter at the
- // start of an existing paragraph get the buffer language
- // and not latex_language, so we take this brute force
- // approach.
- cur.current_font.setLanguage(latex_language);
- cur.real_current_font.setLanguage(latex_language);
- }
InsetText::doDispatch(cur, cmd);
break;
}
LYXERR(Debug::ACTION, "InsetText::doDispatch()"
<< " [ cmd.action = " << cmd.action << ']');
+ // FIXME this use of forceLTR is dubious
+ // introduced in http://www.lyx.org/trac/changeset/21285
+ if (getLayout().isForceLtr()) {
+ // Force any new text to latex_language FIXME: This
+ // should only be necessary in constructor, but new
+ // paragraphs that are created by pressing enter at
+ // the start of an existing paragraph get the buffer
+ // language and not latex_language, so we take this
+ // brute force approach.
+ cur.current_font.setLanguage(latex_language);
+ cur.real_current_font.setLanguage(latex_language);
+ }
+
switch (cmd.action) {
case LFUN_PASTE:
case LFUN_CLIPBOARD_PASTE: