Gcc compile fix. abs is defined for float not int.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35316 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2010-09-07 13:37:22 +00:00
parent 5e82a48f21
commit 0b7886a1a8

View File

@ -119,7 +119,7 @@ void InsetLine::metrics(MetricsInfo & mi, Dimension & dim) const
// set a minimal width
int const minw = (w < 0) ? 3 * 8 : 4;
dim.wid = max(minw, abs(w));
dim.wid = max(minw, max(w, -w));
// Cache the inset dimension
setDimCache(mi, dim);