minor bug in LibDrawPolyline::GetBoundaryBox() fixed
This commit is contained in:
parent
4c9cf1dfe5
commit
053093fabc
|
@ -586,8 +586,8 @@ EDA_Rect LibDrawPolyline::GetBoundaryBox()
|
|||
ymin = ymax = m_PolyPoints[0].y;
|
||||
for( unsigned ii = 1; ii < GetCornerCount(); ii++ )
|
||||
{
|
||||
xmin = MIN( xmin, m_PolyPoints[ii-1].x );
|
||||
xmax = MAX( xmax, m_PolyPoints[ii-1].x );
|
||||
xmin = MIN( xmin, m_PolyPoints[ii].x );
|
||||
xmax = MAX( xmax, m_PolyPoints[ii].x );
|
||||
ymin = MIN( ymin, m_PolyPoints[ii].y );
|
||||
ymax = MAX( ymax, m_PolyPoints[ii].y );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue