Re: LyX 1.4.1svn Graphics dialog bug (MATLAB images, OK button disabled)

2006-04-06 Thread Andre Poenitz
On Tue, Apr 04, 2006 at 08:28:26PM +, Angus Leeming wrote: Georg Baum [EMAIL PROTECTED] writes: Angus, you finally made me to fix this the dirty way I always wanted to do it right by changing the return type of readBB_from_PSFile(), but now I simply created a sane string. The

Re: LyX 1.4.1svn Graphics dialog bug (MATLAB images, OK button disabled)

2006-04-06 Thread Andre Poenitz
On Tue, Apr 04, 2006 at 08:28:26PM +, Angus Leeming wrote: > Georg Baum <[EMAIL PROTECTED]> writes: > > Angus, you finally made me to fix this the dirty way I always wanted to > > do it right by changing the return type of readBB_from_PSFile(), but now I > > simply created a sane string. > >

Re: LyX 1.4.1svn Graphics dialog bug (MATLAB images, OK button disabled)

2006-04-05 Thread Georg Baum
Anand Rangarajan wrote: I tested the patch out on the trunk (lyx-1.5.0svn) build 13548. It works for me on a SUSE x86_64 box (Qt frontend). I removed the (.*) from the patch before compiling. Fine. I tested it only on matlab produced eps files which have spaces in them. When I placed

Re: LyX 1.4.1svn Graphics dialog bug (MATLAB images, OK button disabled)

2006-04-05 Thread Georg Baum
Lars Gullik Bjønnes wrote: Georg Baum [EMAIL PROTECTED] writes: | - if (contains(s,%%BoundingBox:) !contains(s,atend)) { | - string const bb = ltrim(s.substr(14)); | - readBB_lyxerrMessage(file_, zipped, bb); | + boost::smatch what;

Re: LyX 1.4.1svn Graphics dialog bug (MATLAB images, OK button disabled)

2006-04-05 Thread Jean-Marc Lasgouttes
Georg == Georg Baum [EMAIL PROTECTED] writes: Georg I removed readBB_lyxerrMessage because of your #warning. Since Georg I have no time right now I undid that change and will commit Georg the attached patch. You can commit it to 1.4.1svn too. There is a bugzilla entry for that, but I do not

Re: LyX 1.4.1svn Graphics dialog bug (MATLAB images, OK button disabled)

2006-04-05 Thread Georg Baum
Jean-Marc Lasgouttes wrote: You can commit it to 1.4.1svn too. Done. There is a bugzilla entry for that, but I do not remember it... It is http://bugzilla.lyx.org/show_bug.cgi?id=1235, but I would not be surprised if there was a duplicate. Georg

Re: LyX 1.4.1svn Graphics dialog bug (MATLAB images, OK button disabled)

2006-04-05 Thread Juergen Spitzmueller
Georg Baum wrote: It is http://bugzilla.lyx.org/show_bug.cgi?id=1235, but I would not be surprised if there was a duplicate. I suspect this one: http://bugzilla.lyx.org/show_bug.cgi?id=2211 Jürgen

Re: LyX 1.4.1svn Graphics dialog bug (MATLAB images, OK button disabled)

2006-04-05 Thread Jean-Marc Lasgouttes
Georg == Georg Baum [EMAIL PROTECTED] writes: There is a bugzilla entry for that, but I do not remember it... Georg It is http://bugzilla.lyx.org/show_bug.cgi?id=1235, but I would Georg not be surprised if there was a duplicate. I would think so, but I could not find it either. JMarc

Re: LyX 1.4.1svn Graphics dialog bug (MATLAB images, OK button disabled)

2006-04-05 Thread Georg Baum
Anand Rangarajan wrote: > I tested the patch out on the trunk (lyx-1.5.0svn) build 13548. It works > for me on a SUSE x86_64 box (Qt frontend). I removed the (.*) from the > patch before compiling. Fine. > I tested it only on matlab produced eps files which have spaces in them. > When I placed

Re: LyX 1.4.1svn Graphics dialog bug (MATLAB images, OK button disabled)

2006-04-05 Thread Georg Baum
Lars Gullik Bjønnes wrote: > Georg Baum <[EMAIL PROTECTED]> > writes: > | - if (contains(s,"%%BoundingBox:") && !contains(s,"atend")) { > | - string const bb = ltrim(s.substr(14)); > | - readBB_lyxerrMessage(file_, zipped, bb); > | +

Re: LyX 1.4.1svn Graphics dialog bug (MATLAB images, OK button disabled)

2006-04-05 Thread Jean-Marc Lasgouttes
> "Georg" == Georg Baum <[EMAIL PROTECTED]> writes: Georg> I removed readBB_lyxerrMessage because of your #warning. Since Georg> I have no time right now I undid that change and will commit Georg> the attached patch. You can commit it to 1.4.1svn too. There is a bugzilla entry for that,

Re: LyX 1.4.1svn Graphics dialog bug (MATLAB images, OK button disabled)

2006-04-05 Thread Georg Baum
Jean-Marc Lasgouttes wrote: > You can commit it to 1.4.1svn too. Done. > There is a bugzilla entry for that, but I do not remember it... It is http://bugzilla.lyx.org/show_bug.cgi?id=1235, but I would not be surprised if there was a duplicate. Georg

Re: LyX 1.4.1svn Graphics dialog bug (MATLAB images, OK button disabled)

2006-04-05 Thread Juergen Spitzmueller
Georg Baum wrote: > It is http://bugzilla.lyx.org/show_bug.cgi?id=1235, but I would not be > surprised if there was a duplicate. I suspect this one: http://bugzilla.lyx.org/show_bug.cgi?id=2211 Jürgen

Re: LyX 1.4.1svn Graphics dialog bug (MATLAB images, OK button disabled)

2006-04-05 Thread Jean-Marc Lasgouttes
> "Georg" == Georg Baum <[EMAIL PROTECTED]> writes: >> There is a bugzilla entry for that, but I do not remember it... Georg> It is http://bugzilla.lyx.org/show_bug.cgi?id=1235, but I would Georg> not be surprised if there was a duplicate. I would think so, but I could not find it either.

Re: LyX 1.4.1svn Graphics dialog bug (MATLAB images, OK button disabled)

2006-04-04 Thread Anand Rangarajan
I reported this bug earlier but was told that it was already in bugzilla. An easy fix is to run eps2eps on the matlab generated eps plots. This works. Doesn't solve the problem in lyx itself obviously. The relevant bugzilla entry is http://bugzilla.lyx.org/show_bug.cgi?id=1235 How hard will it

Re: LyX 1.4.1svn Graphics dialog bug (MATLAB images, OK button disabled)

2006-04-04 Thread Angus Leeming
Anand Rangarajan [EMAIL PROTECTED] writes: How hard will it be to fix the source to read the bounding box entries and account for the fact that there could be spaces. Anyone know the actual source code that needs to be fixed? Is it in src/graphics/GraphicsParams.C ? Without having the sources

Re: LyX 1.4.1svn Graphics dialog bug (MATLAB images, OK button disabled)

2006-04-04 Thread Georg Baum
Angus Leeming wrote: Anand Rangarajan [EMAIL PROTECTED] writes: How hard will it be to fix the source to read the bounding box entries and account for the fact that there could be spaces. Anyone know the actual source code that needs to be fixed? Is it in src/graphics/GraphicsParams.C ?

Re: LyX 1.4.1svn Graphics dialog bug (MATLAB images, OK button disabled)

2006-04-04 Thread Angus Leeming
Georg Baum [EMAIL PROTECTED] writes: Angus, you finally made me to fix this the dirty way I always wanted to do it right by changing the return type of readBB_from_PSFile(), but now I simply created a sane string. The attached works for me. I'll put it in trunk tomorrow if nobody objects.

Re: LyX 1.4.1svn Graphics dialog bug (MATLAB images, OK button disabled)

2006-04-04 Thread Georg Baum
Am Dienstag, 4. April 2006 22:28 schrieb Angus Leeming: The .* on the is rather ugly, no? Also, why put it in a group since you don't appear to go on to use it. That was a copy/paste error. I will just remove it. Georg

Re: LyX 1.4.1svn Graphics dialog bug (MATLAB images, OK button disabled)

2006-04-04 Thread Lars Gullik Bjønnes
Georg Baum [EMAIL PROTECTED] writes: | Index: src/support/filetools.C | === | --- src/support/filetools.C (Revision 13548) | +++ src/support/filetools.C (Arbeitskopie) | @@ -1168,21 +1157,40 @@ string const

Re: LyX 1.4.1svn Graphics dialog bug (MATLAB images, OK button disabled)

2006-04-04 Thread Anand Rangarajan
Georg Baum [EMAIL PROTECTED] writes: Am Dienstag, 4. April 2006 22:28 schrieb Angus Leeming: The .* on the is rather ugly, no? Also, why put it in a group since you don't appear to go on to use it. That was a copy/paste error. I will just remove it. Georg I tested the patch out

Re: LyX 1.4.1svn Graphics dialog bug (MATLAB images, OK button disabled)

2006-04-04 Thread Anand Rangarajan
I reported this bug earlier but was told that it was already in bugzilla. An easy fix is to run eps2eps on the matlab generated eps plots. This works. Doesn't solve the problem in lyx itself obviously. The relevant bugzilla entry is http://bugzilla.lyx.org/show_bug.cgi?id=1235 How hard will it

Re: LyX 1.4.1svn Graphics dialog bug (MATLAB images, OK button disabled)

2006-04-04 Thread Angus Leeming
Anand Rangarajan <[EMAIL PROTECTED]> writes: > How hard will it be to fix the source to read the bounding box entries > and account for the fact that there could be spaces. Anyone know the > actual source code that needs to be fixed? Is it in > src/graphics/GraphicsParams.C ? Without having the

Re: LyX 1.4.1svn Graphics dialog bug (MATLAB images, OK button disabled)

2006-04-04 Thread Georg Baum
Angus Leeming wrote: > Anand Rangarajan <[EMAIL PROTECTED]> writes: >> How hard will it be to fix the source to read the bounding box entries >> and account for the fact that there could be spaces. Anyone know the >> actual source code that needs to be fixed? Is it in >>

Re: LyX 1.4.1svn Graphics dialog bug (MATLAB images, OK button disabled)

2006-04-04 Thread Angus Leeming
Georg Baum <[EMAIL PROTECTED]> writes: > Angus, you finally made me to fix this the dirty way I always wanted to > do it right by changing the return type of readBB_from_PSFile(), but now I > simply created a sane string. > The attached works for me. I'll put it in trunk tomorrow if nobody

Re: LyX 1.4.1svn Graphics dialog bug (MATLAB images, OK button disabled)

2006-04-04 Thread Georg Baum
Am Dienstag, 4. April 2006 22:28 schrieb Angus Leeming: > The .* on the is rather ugly, no? Also, why put it in a group since you don't > appear to go on to use it. That was a copy/paste error. I will just remove it. Georg

Re: LyX 1.4.1svn Graphics dialog bug (MATLAB images, OK button disabled)

2006-04-04 Thread Lars Gullik Bjønnes
Georg Baum <[EMAIL PROTECTED]> writes: | Index: src/support/filetools.C | === | --- src/support/filetools.C (Revision 13548) | +++ src/support/filetools.C (Arbeitskopie) | @@ -1168,21 +1157,40 @@ string const

Re: LyX 1.4.1svn Graphics dialog bug (MATLAB images, OK button disabled)

2006-04-04 Thread Anand Rangarajan
Georg Baum <[EMAIL PROTECTED]> writes: > > Am Dienstag, 4. April 2006 22:28 schrieb Angus Leeming: > > The .* on the is rather ugly, no? Also, why put it in a group since you > don't > > appear to go on to use it. > > That was a copy/paste error. I will just remove it. > > Georg > > I

LyX 1.4.1svn Graphics dialog bug (MATLAB images, OK button disabled)

2006-04-03 Thread Joost Verburg
Hello, I'm again testing the LyX 1.4.x branch and found another annoying bug. When the Graphics dialog is opened to modify the properties of a graphic, and no information has previously been entered on the Clipping tab, LyX activates the Get from File function and grabs the bounding box

LyX 1.4.1svn Graphics dialog bug (MATLAB images, OK button disabled)

2006-04-03 Thread Joost Verburg
Hello, I'm again testing the LyX 1.4.x branch and found another annoying bug. When the Graphics dialog is opened to modify the properties of a graphic, and no information has previously been entered on the Clipping tab, LyX activates the "Get from File" function and grabs the bounding box