Eeschema: fix incorrect move command for bitmap items.

This commit is contained in:
jean-pierre charras 2013-05-06 15:38:14 +02:00
parent af5a9a8de9
commit 7e2779784b
2 changed files with 2 additions and 4 deletions

View File

@ -58,9 +58,7 @@ void CopyPolygonsFromKiPolygonListToPolysList( KI_POLYGON_SET& aKiPolyList,
aPolysList.push_back( corner );
}
corner.end_contour = true;
aPolysList.pop_back();
aPolysList.push_back( corner );
aPolysList.back().end_contour = true;
}
}

View File

@ -93,7 +93,7 @@ static void moveBitmap( EDA_DRAW_PANEL* aPanel, wxDC* aDC, const wxPoint& aPosit
}
// Draw the bitmap at it's new position.
image->Move( screen->GetCrossHairPosition() );
image->SetPosition( screen->GetCrossHairPosition() );
image->Draw( aPanel, aDC, wxPoint( 0, 0 ), GR_DEFAULT_DRAWMODE );
}