\\subfloat captions are moving arguments

Therefore insets should be protected in these captions.

Fixes bug: #9346.
This commit is contained in:
Jean-Marc Lasgouttes 2014-12-04 17:27:56 +01:00
parent 43c0149796
commit 0bdfca2c6e

View File

@ -339,6 +339,7 @@ void InsetFloat::latex(otexstream & os, OutputParams const & runparams_in) const
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;