From e244ce14312bc077350c23e843662c60dc6dc602 Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Wed, 12 Jan 2022 15:49:03 -0800 Subject: [PATCH] Fix cherry-picked wxPoint --- eeschema/sch_plugins/eagle/sch_eagle_plugin.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/eeschema/sch_plugins/eagle/sch_eagle_plugin.cpp b/eeschema/sch_plugins/eagle/sch_eagle_plugin.cpp index 01257e7bde..7998939f41 100644 --- a/eeschema/sch_plugins/eagle/sch_eagle_plugin.cpp +++ b/eeschema/sch_plugins/eagle/sch_eagle_plugin.cpp @@ -1779,12 +1779,12 @@ LIB_SHAPE* SCH_EAGLE_PLUGIN::loadSymbolRectangle( std::unique_ptr& a if( rect.rot ) { - wxPoint pos( rectangle->GetPosition() ); - wxPoint end( rectangle->GetEnd() ); - wxPoint center( rectangle->GetCenter() ); + VECTOR2I pos( rectangle->GetPosition() ); + VECTOR2I end( rectangle->GetEnd() ); + VECTOR2I center( rectangle->GetCenter() ); - RotatePoint( &pos, center, rect.rot->degrees * 10 ); - RotatePoint( &end, center, rect.rot->degrees * 10 ); + RotatePoint( pos, center, rect.rot->degrees * 10 ); + RotatePoint( end, center, rect.rot->degrees * 10 ); rectangle->SetPosition( pos ); rectangle->SetEnd( end );