Main argument of a subfloat is not a moving argument

Fixes bug: #9421
This commit is contained in:
Jean-Marc Lasgouttes 2015-02-20 11:51:40 +01:00
parent d7bf990dfd
commit f620de8036
2 changed files with 4 additions and 0 deletions

View File

@ -345,6 +345,8 @@ void InsetFloat::latex(otexstream & os, OutputParams const & runparams_in) const
os << caption;
}
os << '{';
// The main argument is the contents of the float. This is not a moving argument.
rp.moving_arg = false;
rp.inFloat = OutputParams::SUBFLOAT;
InsetText::latex(os, rp);
os << "}";

View File

@ -65,6 +65,8 @@ What's new
- Do not output \protect unnecessarily before \caption (bug 9177).
- Do not output \protect unnecessarily in subfigure contents (bug 9421).
- Fix wrong listings preamble encoding (bug 9382).
- Fix reversion of beamer description overlay arguments.