Re: [patch] fix bug 2504

2008-04-13 Thread Jürgen Spitzmüller
Uwe Stöhr wrote: > Jürgen, also OK for branch? OK. Jürgen

Re: [patch] fix bug 2504

2008-04-12 Thread Uwe Stöhr
> and even smaller: Indeed yes. I have put it in: http://www.lyx.org/trac/changeset/24244 Jürgen, also OK for branch? thanks Edwin and regards Uwe

Re: [patch] fix bug 2504

2008-04-11 Thread Edwin Leuven
Uwe Stöhr wrote: Thanks for the hint, this makes the code much smaller. and even smaller: string arg = "\\makebox"; if (p.next_token().character() == '(') //the syntax is: \makebox(x,y)[position]{content} //the content can be left as is, put the rest in ERT arg += p.get

Re: [patch] fix bug 2504

2008-04-11 Thread Uwe Stöhr
Jean-Marc Lasgouttes schrieb: I think something is wrong here. Arguments in [] are optional. I doubt that you code will handle \makebox(3,2){contents} gracefully. You are right, I missed this case. You should use getFullOpt to read such optional strings (also in the > other kind of \makebox

Re: [patch] fix bug 2504

2008-04-11 Thread Jean-Marc Lasgouttes
Uwe Stöhr <[EMAIL PROTECTED]> writes: > + else if (t.cs() == "makebox") { > + if (p.next_token().character() == '(') { > + //the syntax is: > \makebox(x,y)[position]{content} > + //the content can be left as i

Re: [patch] fix bug 2504

2008-04-11 Thread Edwin Leuven
i edited the patch a bit and made it a bit nicer by taking handle_ert out of the if's i also attach a second version which is much shorter both untested Uwe Stöhr wrote: The attached patch for trunk fixes http://bugzilla.lyx.org/show_bug.cgi?id=2504 http://bugzilla.lyx.org/show_bug.cgi?id=25

[patch] fix bug 2504

2008-04-10 Thread Uwe Stöhr
The attached patch for trunk fixes http://bugzilla.lyx.org/show_bug.cgi?id=2504 http://bugzilla.lyx.org/show_bug.cgi?id=2504#c7 describes what the patch is for. Jürgen, can this also go into branch? regards Uwe Index: text.cpp ===