Protect label in moving argument

Fixes: #9404
This commit is contained in:
Juergen Spitzmueller 2019-03-14 14:38:08 +01:00
parent 262e436fc3
commit 3272c5a3f4

View File

@ -303,9 +303,12 @@ void InsetLabel::latex(otexstream & os, OutputParams const & runparams_in) const
// we store the label and output it after the macro (#2154)
if (runparams_in.postpone_fragile_stuff)
runparams_in.post_macro += command;
else
else {
if (runparams.moving_arg)
os << "\\protect";
os << command;
}
}
int InsetLabel::plaintext(odocstringstream & os,