(InsetGraphics::latex): add \protect as needed (bug 675)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13478
a592a061-630c-0410-9148-
cb99ea01b6c8
string after;
// Do we want subcaptions?
if (params().subcaption) {
+ if (runparams.moving_arg)
+ before += "\\protect";
before += "\\subfigure[" + params().subcaptionText + "]{";
after = '}';
}
+
+ if (runparams.moving_arg)
+ before += "\\protect";
+
// We never use the starred form, we use the "clip" option instead.
before += "\\includegraphics";