move the abs() from lyxlength:inBP to the place where it is used.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4626 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2002-07-12 15:55:30 +00:00
parent 403d15bdd4
commit f90e1e249f

View File

@ -63,10 +63,10 @@ BoundingBox::BoundingBox(string const & bb)
// inBP returns the length in Postscript points.
// Note further that there are 72 Postscript pixels per inch.
int const xl_tmp = LyXLength(a).inBP();
int const yb_tmp = LyXLength(b).inBP();
int const xr_tmp = LyXLength(c).inBP();
int const yt_tmp = LyXLength(d).inBP();
int const xl_tmp = abs(LyXLength(a).inBP());
int const yb_tmp = abs(LyXLength(b).inBP());
int const xr_tmp = abs(LyXLength(c).inBP());
int const yt_tmp = abs(LyXLength(d).inBP());
if (xr_tmp <= xl_tmp || yt_tmp <= yb_tmp)
return;