Rod Pinna wrote: > > Just wondering in a "reread" button could be added in the next version, in > the graphics insert box. Currently, if I update a picture externally, > there isn't a way to update the picture without closing lyx.
this is not true, it's still part of the code! - reread the bb - the only problem is that you have to enable the "clip to bounding box", then the lyx-view is updated, too. - and an apply to view the changes with the attached patch it works without enabling the "clip to ..." checkbox Herbert -- http://www.lyx.org/help/
Index: src/graphics/GraphicsParams.C =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/graphics/GraphicsParams.C,v retrieving revision 1.13 diff -u -r1.13 GraphicsParams.C --- src/graphics/GraphicsParams.C 1 May 2002 11:12:02 -0000 1.13 +++ src/graphics/GraphicsParams.C 22 May 2002 17:00:32 -0000 @@ -33,7 +33,7 @@ filename = MakeAbsPath(filename, filepath); } - if (iparams.clip) { +// if (iparams.clip) { bb = iparams.bb; // Get the original Bounding Box from the file @@ -55,16 +55,16 @@ bb.yt = std::max(0, bb.yt); // Paranoia check. - int const width = bb.xr - bb.xl; - int const height = bb.yt - bb.yb; + int const width_bb = bb.xr - bb.xl; + int const height_bb = bb.yt - bb.yb; - if (width < 0 || height < 0) { + if (width_bb < 0 || height_bb < 0) { bb.xl = 0; bb.xr = 0; bb.yb = 0; bb.yt = 0; } - } +// } if (iparams.rotate)