class_zone.cpp: changed fabs() to std::abs()
Originally fabs() was invoked on an integer variable and compared with an integer, so there is no reason to use the floating point variant.
This commit is contained in:
parent
821c02af3c
commit
efaf429a71
|
@ -1267,7 +1267,7 @@ void ZONE_CONTAINER::Hatch()
|
|||
// Push only one line for diagonal hatch,
|
||||
// or for small lines < twice the line length
|
||||
// else push 2 small lines
|
||||
if( m_hatchStyle == DIAGONAL_FULL || fabs( dx ) < 2 * hatch_line_len )
|
||||
if( m_hatchStyle == DIAGONAL_FULL || std::abs( dx ) < 2 * hatch_line_len )
|
||||
{
|
||||
m_HatchLines.push_back( SEG( pointbuffer[ip], pointbuffer[ip + 1] ) );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue