Therefore insets should be protected in these captions.
Fixes bug: #9346.
if (runparams_in.moving_arg)
os << "\\protect";
os << "\\subfloat";
-
+
OutputParams rp = runparams_in;
+ rp.moving_arg = true;
docstring const caption = getCaption(rp);
if (!caption.empty()) {
os << caption;
rp.inFloat = OutputParams::SUBFLOAT;
InsetText::latex(os, rp);
os << "}";
-
+
return;
}
OutputParams runparams(runparams_in);
- Fix crash on exporting a recursive math macro (bug 9140). Recursive macros
are invalid, so typesetting will still fail with "TeX capacity exceeded".
+- Protect insets when needed in subfloat captions (bug 9346).
+
* LYX2LYX