Re: Unable to edit and save graphic in lyx-1.4.0 (Qt frontend)

2006-03-18 Thread Juergen Spitzmueller
I still fail to reproduce that. Can you send an example file, inclusing the 
graphic?

Jürgen

Anand Rangarajan wrote:
 I compiled and installed lyx-1.4.0 (Qt frontend) on a SUSE 10 x86_64 box.

 In lyx-1.4.0, I'm unable to edit and save a graphic. I wonder if I'm doing
 something stupid. Anyway, here's the problem.

 1. Open a new lyx file.

 2. Insert a graphic using the Insert graphic button on the toolbar.
 Browse and choose a file.

 3. Set the width parameter to 4in. Click OK and the dialog vanishes.

 4. Save the document.

 5. Click on the graphic again. Change the width to 3in.

 6. Try and click OK to save your changes to the graphic.

 7. I cannot do this. The OK button on the dialog is grayed out and cannot
 be clicked. Consequently, I cannot make any changes to the graphic. I have
 to delete it and insert a new graphic with the properties that I want.

 Anand


Re: Unable to edit and save graphic in lyx-1.4.0 (Qt frontend)

2006-03-18 Thread Anand Rangarajan

 I still fail to reproduce that. Can you send an example file, inclusing the 
 graphic?

 Jürgen
I've attached a tar file called test_graphic.tgz. It contains
test_graphic.lyx and a graphic.

1. Open the lyx file.

2. Click on the graphic.

3. Try and change the width parameter to 3in (from its current setting
of 4in).

4. The OK and Apply buttons are grayed out and so you cannot make
the changes. (Of course, this could be an idiosyncrasy of my compiled
lyx-1.4.0 version).

Anand



test_graphic.tgz
Description: application/compressed-tar


Re: Unable to edit and save graphic in lyx-1.4.0 (Qt frontend)

2006-03-18 Thread Juergen Spitzmueller
Anand Rangarajan wrote:
 I've attached a tar file called test_graphic.tgz. It contains
 test_graphic.lyx and a graphic.

I see. The problem is the eps file. The bounding box values are not parsed 
correctly by LyX. If you click on the Clipping pane in the graphics dialog, 
you'll se that two values are missing (markes red). That's why the OK button 
is disabled.

The line in the file reads
%%BoundingBox:58   199   546   602

If you run your graphic through eps2eps, you'll get a working graphic (see 
attached), where the line has been changed to
%BoundingBox: 58 199 547 603

So maybe a whitespace problem.

Jürgen 


LROC_Area_length_96_height_6_back_10-2.eps
Description: image/eps


Re: Unable to edit and save graphic in lyx-1.4.0 (Qt frontend)

2006-03-18 Thread Georg Baum
Am Samstag, 18. März 2006 16:14 schrieb Juergen Spitzmueller:

 I see. The problem is the eps file. The bounding box values are not 
parsed 
 correctly by LyX. If you click on the Clipping pane in the graphics 
dialog, 
 you'll se that two values are missing (markes red). That's why the OK 
button 
 is disabled.

 So maybe a whitespace problem.

Yes. The bounding box parser in LyX is too stupid.


Georg



Re: Unable to edit and save graphic in lyx-1.4.0 (Qt frontend)

2006-03-18 Thread Jean-Marc Lasgouttes
 Juergen == Juergen Spitzmueller [EMAIL PROTECTED] writes:

Juergen Anand Rangarajan wrote:
 I've attached a tar file called test_graphic.tgz. It contains
 test_graphic.lyx and a graphic.

Juergen I see. The problem is the eps file. The bounding box values
Juergen are not parsed correctly by LyX. If you click on the
Juergen Clipping pane in the graphics dialog, you'll se that two
Juergen values are missing (markes red). That's why the OK button is
Juergen disabled.

This is probably
http://bugzilla.lyx.org/show_bug.cgi?id=1235

Would be easy to fix.

JMarc


Re: Unable to edit and save graphic in lyx-1.4.0 (Qt frontend)

2006-03-18 Thread Anand Rangarajan
Juergen Spitzmueller [EMAIL PROTECTED] writes:


 I see. The problem is the eps file. The bounding box values are not parsed 
 correctly by LyX. If you click on the Clipping pane in the graphics dialog, 
 you'll se that two values are missing (markes red). That's why the OK button 
 is disabled.
 
 The line in the file reads
 %%BoundingBox:58   199   546   602
 
 If you run your graphic through eps2eps, you'll get a working graphic (see 
 attached), where the line has been changed to
 %BoundingBox: 58 199 547 603
 

Thanks. Running eps2eps fixes the problem. I'll make sure to run eps2eps on
matlab generated eps files before inserting them into lyx.

Anand


 Jürgen 
 
 






Re: Unable to edit and save graphic in lyx-1.4.0 (Qt frontend)

2006-03-18 Thread Juergen Spitzmueller
I still fail to reproduce that. Can you send an example file, inclusing the 
graphic?

Jürgen

Anand Rangarajan wrote:
> I compiled and installed lyx-1.4.0 (Qt frontend) on a SUSE 10 x86_64 box.
>
> In lyx-1.4.0, I'm unable to edit and save a graphic. I wonder if I'm doing
> something stupid. Anyway, here's the problem.
>
> 1. Open a new lyx file.
>
> 2. Insert a graphic using the "Insert graphic" button on the toolbar.
> Browse and choose a file.
>
> 3. Set the width parameter to 4in. Click OK and the dialog vanishes.
>
> 4. Save the document.
>
> 5. Click on the graphic again. Change the width to 3in.
>
> 6. Try and click OK to save your changes to the graphic.
>
> 7. I cannot do this. The "OK" button on the dialog is grayed out and cannot
> be clicked. Consequently, I cannot make any changes to the graphic. I have
> to delete it and insert a new graphic with the properties that I want.
>
> Anand


Re: Unable to edit and save graphic in lyx-1.4.0 (Qt frontend)

2006-03-18 Thread Anand Rangarajan
>
> I still fail to reproduce that. Can you send an example file, inclusing the 
> graphic?
>
> Jürgen
I've attached a tar file called test_graphic.tgz. It contains
test_graphic.lyx and a graphic.

1. Open the lyx file.

2. Click on the graphic.

3. Try and change the width parameter to 3in (from its current setting
of 4in).

4. The "OK" and "Apply" buttons are grayed out and so you cannot make
the changes. (Of course, this could be an idiosyncrasy of my compiled
lyx-1.4.0 version).

Anand



test_graphic.tgz
Description: application/compressed-tar


Re: Unable to edit and save graphic in lyx-1.4.0 (Qt frontend)

2006-03-18 Thread Juergen Spitzmueller
Anand Rangarajan wrote:
> I've attached a tar file called test_graphic.tgz. It contains
> test_graphic.lyx and a graphic.

I see. The problem is the eps file. The bounding box values are not parsed 
correctly by LyX. If you click on the "Clipping" pane in the graphics dialog, 
you'll se that two values are missing (markes red). That's why the OK button 
is disabled.

The line in the file reads
%%BoundingBox:58   199   546   602

If you run your graphic through eps2eps, you'll get a working graphic (see 
attached), where the line has been changed to
%BoundingBox: 58 199 547 603

So maybe a whitespace problem.

Jürgen 


LROC_Area_length_96_height_6_back_10-2.eps
Description: image/eps


Re: Unable to edit and save graphic in lyx-1.4.0 (Qt frontend)

2006-03-18 Thread Georg Baum
Am Samstag, 18. März 2006 16:14 schrieb Juergen Spitzmueller:

> I see. The problem is the eps file. The bounding box values are not 
parsed 
> correctly by LyX. If you click on the "Clipping" pane in the graphics 
dialog, 
> you'll se that two values are missing (markes red). That's why the OK 
button 
> is disabled.

> So maybe a whitespace problem.

Yes. The bounding box parser in LyX is too stupid.


Georg



Re: Unable to edit and save graphic in lyx-1.4.0 (Qt frontend)

2006-03-18 Thread Jean-Marc Lasgouttes
> "Juergen" == Juergen Spitzmueller <[EMAIL PROTECTED]> writes:

Juergen> Anand Rangarajan wrote:
>> I've attached a tar file called test_graphic.tgz. It contains
>> test_graphic.lyx and a graphic.

Juergen> I see. The problem is the eps file. The bounding box values
Juergen> are not parsed correctly by LyX. If you click on the
Juergen> "Clipping" pane in the graphics dialog, you'll se that two
Juergen> values are missing (markes red). That's why the OK button is
Juergen> disabled.

This is probably
http://bugzilla.lyx.org/show_bug.cgi?id=1235

Would be easy to fix.

JMarc


Re: Unable to edit and save graphic in lyx-1.4.0 (Qt frontend)

2006-03-18 Thread Anand Rangarajan
Juergen Spitzmueller <[EMAIL PROTECTED]> writes:

>
> I see. The problem is the eps file. The bounding box values are not parsed 
> correctly by LyX. If you click on the "Clipping" pane in the graphics dialog, 
> you'll se that two values are missing (markes red). That's why the OK button 
> is disabled.
> 
> The line in the file reads
> %%BoundingBox:58   199   546   602
> 
> If you run your graphic through eps2eps, you'll get a working graphic (see 
> attached), where the line has been changed to
> %BoundingBox: 58 199 547 603
> 

Thanks. Running eps2eps fixes the problem. I'll make sure to run eps2eps on
matlab generated eps files before inserting them into lyx.

Anand


> Jürgen 
> 
>