Apply that width fudge irrespective of library version. Make it slightly more

conservative (add only 2, not 5). Could people test please.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4623 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Angus Leeming 2002-07-12 15:14:02 +00:00
parent 6ae1cb1d6c
commit a72387b287
2 changed files with 8 additions and 8 deletions

View File

@ -1,3 +1,7 @@
2002-07-12 Angus Leeming <leeming@lyx.org>
* xformsImage.C (width): apply fudge irrespective of library version.
2002-07-12 John Levon <moz@compsoc.man.ac.uk>
* Toolbar_pimpl.h:
@ -39,7 +43,7 @@
2002-07-09 Angus Leeming <leeming@lyx.org>
* xformsImage.C (scale): use boost::tie.
(statusCB): fudge to fix bug in image width for xforms <= 0.89.6.
(width): fudge to fix bug in image width for xforms <= 0.89.6.
2002-07-08 Angus Leeming <leeming@lyx.org>

View File

@ -153,13 +153,9 @@ unsigned int xformsImage::getWidth() const
if (!image_)
return 0;
#if FL_VERSION == 0 && FL_REVISION == 89 && FL_FIXLEVEL <= 6
// Used to fix a bug in xforms <= 0.89.6 which
// crops the image unnecessarily.
return image_->w + 5;
#else
return image_->w;
#endif
// Why, oh why do we need such hacks?
// Angus 12 July 2002
return image_->w + 2;
}