R. Lahaye wrote: >>ok, I have it. >> > You initially didn't see it, asked me for an test file, but then sent > the above; so I assume you can reproduce it yourself now, can't you?
> > I have set about everything there's to set in the Graphics dialog (Draft, > Unzip, Extra LaTeX options etc. etc.) with, say, graph1.eps. I then clicked > on Browse for another graphics file, selected graph2.eps (No [Apply] nor > [OK] yet!), just tab over to Bounding Box and see that the bb coordinates > have changed. All other settings are still there as they were before. > > With eps files, the bounding box changed to the values in the new file. > With my Grace files, the bounding box values changed to all zeros!! > > I consider this as a bug. Would you agree? try the one-line-patch, it should help Herbert -- http://www.lyx.org/help/
Index: src/frontends/xforms/ChangeLog =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/frontends/xforms/ChangeLog,v retrieving revision 1.369 diff -u -r1.369 ChangeLog --- src/frontends/xforms/ChangeLog 1 May 2002 10:04:55 -0000 1.369 +++ src/frontends/xforms/ChangeLog 2 May 2002 05:04:23 -0000 @@ -1,3 +1,7 @@ +2002-05-02 Herbert Voss <[EMAIL PROTECTED]> + + * FormGraphics.C (input): do not read bb new when it was changed + 2002-04-30 Rob Lahaye <[EMAIL PROTECTED]> * FormDocument.C: "USletter" -> "US letter" etc. "Other" -> "Custom". Index: src/frontends/xforms/FormGraphics.C =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/frontends/xforms/FormGraphics.C,v retrieving revision 1.70 diff -u -r1.70 FormGraphics.C --- src/frontends/xforms/FormGraphics.C 1 May 2002 09:25:51 -0000 1.70 +++ src/frontends/xforms/FormGraphics.C 2 May 2002 05:04:23 -0000 @@ -510,7 +510,8 @@ if (out_name != in_name && !out_name.empty()) { fl_set_input(file_->input_filename, out_name.c_str()); } - if (controller().isFilenameValid(out_name)) + if (controller().isFilenameValid(out_name) && + !controller().bbChanged) updateBB(out_name, string()); } else if (ob == file_->check_subcaption) {