tex2lyx/text.cpp: \lang is already handled by parse_text

This commit is contained in:
Uwe Stöhr 2012-06-22 04:41:08 +02:00
parent aa9fed9322
commit e8f4ce5726

View File

@ -1257,10 +1257,9 @@ void parse_environment(Parser & p, ostream & os, bool outer,
parent_context.check_end_layout(os);
parent_context.new_paragraph(os);
}
// save the language for the case that a
// \textLANGUAGE is used
// save the language in the context so that it is
// handled by parse_text
parent_context.font.language = polyglossia2lyx(name);
os << "\n\\lang " << parent_context.font.language << "\n";
parse_text(p, os, FLAG_END, outer, parent_context);
// Just in case the environment is empty
parent_context.extra_stuff.erase();