From 053093fabc73b1d6e50466dd03c3f8de05b35462 Mon Sep 17 00:00:00 2001 From: charras Date: Fri, 13 Feb 2009 09:11:12 +0000 Subject: [PATCH] minor bug in LibDrawPolyline::GetBoundaryBox() fixed --- eeschema/classes_body_items.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eeschema/classes_body_items.cpp b/eeschema/classes_body_items.cpp index c136a46f3f..6a21db7133 100644 --- a/eeschema/classes_body_items.cpp +++ b/eeschema/classes_body_items.cpp @@ -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 ); }