>>>>> "Martin" == Martin Vermeer <[EMAIL PROTECTED]> writes:

Martin> On Thu, Mar 23, 2006 at 03:08:16PM +0100, Jean-Marc Lasgouttes
Martin> wrote:
>>  I would like to apply the following to branch and trunk. Any
>> objection?
>> 
>> To recap, what it does is restrict bruteFind to search only in the
>> paragraphs that are in the coordcache. The old code searched
>> through the whole document but acted only on the paragraphs in the
>> coordcache (the test for CUR_INSIDE).
>> 
>> Any objection?

Martin> If this invisible patch is the latest you posted on bugzilla,
Martin> no.

OK, since you insist, I'll attach it :)

JMarc

Index: insetgraphics.C
===================================================================
--- insetgraphics.C	(revision 13276)
+++ 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";
 

Reply via email to