This was posted to bugzilla. Works for me.

- Martin


Index: insets/insetgraphics.C
===================================================================
--- insets/insetgraphics.C      (revision 13302)
+++ insets/insetgraphics.C      (working copy)
@@ -748,9 +748,15 @@
        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";
 

Attachment: pgp2wakEi1AX0.pgp
Description: PGP signature

Reply via email to