mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-21 23:09:40 +00:00
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:
parent
5e82a48f21
commit
0b7886a1a8
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user