From f90e1e249f41f20504670923884ec022771fccc9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Fri, 12 Jul 2002 15:55:30 +0000 Subject: [PATCH] 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 --- src/graphics/GraphicsParams.C | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/graphics/GraphicsParams.C b/src/graphics/GraphicsParams.C index a952895e93..96f0bc9590 100644 --- a/src/graphics/GraphicsParams.C +++ b/src/graphics/GraphicsParams.C @@ -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; -- 2.39.2