// In some insets (such as Arguments), we cannot use \selectlanguage
bool const localswitch = !use_polyglossia
- && text.inset().getLayout().forcelocalfontswitch();
+ && text.inset().forceLocalFontSwitch();
if (localswitch) {
lang_begin_command = lyxrc.language_command_local;
lang_end_command = "}";
DocumentClass const & tclass = bparams.documentClass();
if ((style == next_layout
&& !style.parbreak_is_newline
+ && !text.inset().getLayout().parbreakIsNewline()
&& style.latextype != LATEX_ITEM_ENVIRONMENT
&& style.latextype != LATEX_LIST_ENVIRONMENT
&& style.align == par.getAlign()