Angus Leeming wrote: > On Tuesday 09 July 2002 9:21 am, Herbert Voss wrote: > >>>In InsetFormula::ascent, descent, width, try adding 5 or so to the >>>returned value. That'll check that the image is Ok or not. >>> >>this happens for all images, not only the math-preview. >>So it must be a in the graphics or xforms stuff >> >>Herbert >> > > So just add 5 to the returned value in xformsImage::getWidth, getHeight. Does > that give you an improved image? If so, dig deeper into xforms. here is a patch for the math-preview. For the graphics part I'm still digging. Herbert -- http://www.lyx.org/help/
? preview.diff Index: ChangeLog =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/graphics/ChangeLog,v retrieving revision 1.89 diff -u -r1.89 ChangeLog --- ChangeLog 9 Jul 2002 09:31:39 -0000 1.89 +++ ChangeLog 9 Jul 2002 11:06:27 -0000 @@ -1,3 +1,8 @@ +2002-07-09 Herbert Voss <[EMAIL PROTECTED]> + + * PreviewImage.C: (width) bugfix for the right pixels which + are cut. (maybe a bug of xforms??) + 2002-07-08 Angus Leeming <[EMAIL PROTECTED]> * PreviewLoader.C: Further refactoring of the code. Should now be Index: PreviewImage.C =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/graphics/PreviewImage.C,v retrieving revision 1.4 diff -u -r1.4 PreviewImage.C --- PreviewImage.C 9 Jul 2002 09:30:54 -0000 1.4 +++ PreviewImage.C 9 Jul 2002 11:06:28 -0000 @@ -99,8 +99,10 @@ int PreviewImage::width() const { + // there maybe a bug in xforms which cuts the right + // pixels. So we add 5pt to the width Image const * const image = pimpl_->image(); - return image ? image->getWidth() : 0; + return image ? image->getWidth() + 5 : 0; }