minor bug in LibDrawPolyline::GetBoundaryBox() fixed

This commit is contained in:
charras 2009-02-13 09:11:12 +00:00
parent 4c9cf1dfe5
commit 053093fabc
1 changed files with 2 additions and 2 deletions

View File

@ -586,8 +586,8 @@ EDA_Rect LibDrawPolyline::GetBoundaryBox()
ymin = ymax = m_PolyPoints[0].y; ymin = ymax = m_PolyPoints[0].y;
for( unsigned ii = 1; ii < GetCornerCount(); ii++ ) for( unsigned ii = 1; ii < GetCornerCount(); ii++ )
{ {
xmin = MIN( xmin, m_PolyPoints[ii-1].x ); xmin = MIN( xmin, m_PolyPoints[ii].x );
xmax = MAX( xmax, m_PolyPoints[ii-1].x ); xmax = MAX( xmax, m_PolyPoints[ii].x );
ymin = MIN( ymin, m_PolyPoints[ii].y ); ymin = MIN( ymin, m_PolyPoints[ii].y );
ymax = MAX( ymax, m_PolyPoints[ii].y ); ymax = MAX( ymax, m_PolyPoints[ii].y );
} }