mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 10:58:52 +00:00
insets/InsetLine.cpp: use std::abs
Use std::abs in stead of std::max(v, -v).
This commit is contained in:
parent
d52c9fda34
commit
bc51243587
@ -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')));
|
||||
|
Loading…
Reference in New Issue
Block a user