eeschema,libedit: fixed: move line broken

This commit is contained in:
charras 2009-02-27 18:00:37 +00:00
parent 859a4f72d3
commit 631b192bbd
1 changed files with 1 additions and 1 deletions

View File

@ -449,7 +449,7 @@ void MoveLibDrawItemAt( LibEDA_BaseStruct* DrawItem, wxPoint newpos )
{
int ii, imax = ( (LibDrawPolyline*) CurrentDrawItem )->GetCornerCount();
wxPoint offset = newpos - ( (LibDrawPolyline*) CurrentDrawItem )->m_PolyPoints[0];
for( ii = 0; ii < imax; ii += 2 )
for( ii = 0; ii < imax; ii ++ )
( (LibDrawPolyline*) CurrentDrawItem )->m_PolyPoints[ii] += offset;
}
break;