tex2lyx: clear latexparam after use.

(cherry picked from commit 7e3a41bd15)
This commit is contained in:
Juergen Spitzmueller 2018-03-17 12:38:53 +01:00
parent ce5b420a44
commit 5170efe2c9

View File

@ -3295,6 +3295,7 @@ void parse_text(Parser & p, ostream & os, unsigned flags, bool outer,
context.latexparam = newlayout->latexparam();
// write the layout
output_command_layout(os, p, outer, context, newlayout);
context.latexparam.clear();
p.skip_spaces();
if (!preamble.titleLayoutFound())
preamble.titleLayoutFound(newlayout->intitle);
@ -5467,6 +5468,7 @@ void parse_text(Parser & p, ostream & os, unsigned flags, bool outer,
output_ert(os, arg, newcontext);
} else
parse_text_in_inset(p, os, FLAG_ITEM, false, context, newinsetlayout);
context.latexparam.clear();
if (caption)
p.skip_spaces();
// Minted caption insets are not closed here because