Fix broken rectangles in Eagle schematic importer.

This commit is contained in:
Wayne Stambaugh 2024-06-21 16:17:16 -04:00
parent 1613816e77
commit 0ed72fb47a
1 changed files with 2 additions and 2 deletions

View File

@ -2273,8 +2273,8 @@ SCH_SHAPE* SCH_IO_EAGLE::loadSymbolRectangle( std::unique_ptr<LIB_SYMBOL>& aSymb
SCH_SHAPE* rectangle = new SCH_SHAPE( SHAPE_T::RECTANGLE ); SCH_SHAPE* rectangle = new SCH_SHAPE( SHAPE_T::RECTANGLE );
rectangle->SetParent( aSymbol.get() ); rectangle->SetParent( aSymbol.get() );
rectangle->SetPosition( VECTOR2I( aRectangle->x1.ToSchUnits(), aRectangle->y1.ToSchUnits() ) ); rectangle->SetPosition( VECTOR2I( aRectangle->x1.ToSchUnits(), -aRectangle->y1.ToSchUnits() ) );
rectangle->SetEnd( VECTOR2I( aRectangle->x2.ToSchUnits(), aRectangle->y2.ToSchUnits() ) ); rectangle->SetEnd( VECTOR2I( aRectangle->x2.ToSchUnits(), -aRectangle->y2.ToSchUnits() ) );
if( aRectangle->rot ) if( aRectangle->rot )
{ {