mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
\\subfloat captions are moving arguments
Therefore insets should be protected in these captions. Fixes bug: #9346.
This commit is contained in:
parent
43c0149796
commit
0bdfca2c6e
@ -337,8 +337,9 @@ void InsetFloat::latex(otexstream & os, OutputParams const & runparams_in) const
|
|||||||
if (runparams_in.moving_arg)
|
if (runparams_in.moving_arg)
|
||||||
os << "\\protect";
|
os << "\\protect";
|
||||||
os << "\\subfloat";
|
os << "\\subfloat";
|
||||||
|
|
||||||
OutputParams rp = runparams_in;
|
OutputParams rp = runparams_in;
|
||||||
|
rp.moving_arg = true;
|
||||||
docstring const caption = getCaption(rp);
|
docstring const caption = getCaption(rp);
|
||||||
if (!caption.empty()) {
|
if (!caption.empty()) {
|
||||||
os << caption;
|
os << caption;
|
||||||
@ -347,7 +348,7 @@ void InsetFloat::latex(otexstream & os, OutputParams const & runparams_in) const
|
|||||||
rp.inFloat = OutputParams::SUBFLOAT;
|
rp.inFloat = OutputParams::SUBFLOAT;
|
||||||
InsetText::latex(os, rp);
|
InsetText::latex(os, rp);
|
||||||
os << "}";
|
os << "}";
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
OutputParams runparams(runparams_in);
|
OutputParams runparams(runparams_in);
|
||||||
|
Loading…
Reference in New Issue
Block a user