From 8c3d4d4eda25825f21acaf9352a7005304a436b7 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Mon, 6 May 2013 15:38:14 +0200 Subject: [PATCH] Eeschema: fix incorrect move command for bitmap items. --- common/convert_basic_shapes_to_polygon.cpp | 4 +--- eeschema/edit_bitmap.cpp | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/common/convert_basic_shapes_to_polygon.cpp b/common/convert_basic_shapes_to_polygon.cpp index ada3982593..e9ecc555d5 100644 --- a/common/convert_basic_shapes_to_polygon.cpp +++ b/common/convert_basic_shapes_to_polygon.cpp @@ -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; } } diff --git a/eeschema/edit_bitmap.cpp b/eeschema/edit_bitmap.cpp index 312edcff7c..4ff2aeac24 100644 --- a/eeschema/edit_bitmap.cpp +++ b/eeschema/edit_bitmap.cpp @@ -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 ); }