Angus Leeming wrote: > On Thursday 04 April 2002 11:26 am, Herbert Voss wrote: > >>R. Lahaye wrote: >> >>>"R. Lahaye" wrote: >>> >>>>Note: this muddling up is only for the LyX View on the canvas; in the >>>>final DVI or Postscript View the bounding box coordinates seem to work >>>>fine. >>>> >>>Actually, now I think that the bounding box limits have different effects >>>on the LyX View and on the final LaTeX output (DVI/Postscript). >>> >>>I noticed that clipping may make parts of the graph disappear on the >>>canvas, but to have the same effect in the DVI or Postscript output, >>>I need to modify the bounding box values! >>> >>>Bounding box and clipping has apparently different effects for the LyX >>>View graph and the final LaTeX output. One of them is thus wrongly done. >>> >>maybe that I'm totally wrong here (Angus??) but the boundingbox is never >>used for the lyx-view. >> >>Herbert >> > > Maybe you're totally wrong, but I think it is. Of course, the code may be > buggy...
oh ... :-) this should be right. the isValid() is paranoia, because the inset does it, too. bb += ' '; tmp = token(bb,' ',0) if (isValidLength(tmp)) LyXLength const length_xl(tmp1); else return; tmp = token(bb,' ',1) if (isValidLength(tmp)) LyXLength const length_yb(tmp1); else return; tmp = token(bb,' ',2) if (isValidLength(tmp)) LyXLength const length_xr(tmp1); else return; tmp = token(bb,' ',3) if (isValidLength(tmp)) LyXLength const length_yt(tmp1); else return; Herbert -- http://www.lyx.org/help/