* InsetMarginal.cpp:

- \marginpar needs to be \protect'ed in fragile context (bug 2790).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26992 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2008-10-20 17:08:39 +00:00
parent c509d3d8fc
commit 25c8c8ce8a

View File

@ -37,7 +37,10 @@ docstring InsetMarginal::editMessage() const
int InsetMarginal::latex(odocstream & os, OutputParams const & runparams) const
{
os << "%\n\\marginpar{";
os << "%\n";
if (runparams.moving_arg)
os << "\\protect";
os << "\\marginpar{";
int const i = InsetText::latex(os, runparams);
os << "%\n}";
return i + 2;