insets/InsetLine.cpp: use std::abs

Use std::abs in stead of std::max(v, -v).
This commit is contained in:
Lars Gullik Bjønnes 2012-10-26 10:56:53 +02:00
parent d52c9fda34
commit bc51243587

View File

@ -118,7 +118,7 @@ void InsetLine::metrics(MetricsInfo & mi, Dimension & dim) const
// set a minimal width
int const minw = (dim.wid < 0) ? 24 : 4;
dim.wid = max(minw, max(dim.wid, -dim.wid));
dim.wid = max(minw, abs(dim.wid));
Length height = Length(to_ascii(getParam("height")));
height_ = height.inPixels(max_width, fm.width(char_type('M')));