Gerbview, export to PCB: fix incorrect export of flashed shapes on non copper layers.
From master branch Fixes #15613 https://gitlab.com/kicad/code/kicad/-/issues/15613
This commit is contained in:
parent
3cd6935acb
commit
aab36d9b85
|
@ -1,8 +1,8 @@
|
||||||
/*
|
/*
|
||||||
* This program source code file is part of KiCad, a free EDA CAD application.
|
* This program source code file is part of KiCad, a free EDA CAD application.
|
||||||
*
|
*
|
||||||
* Copyright (C) 2007-2014 Jean-Pierre Charras jp.charras at wanadoo.fr
|
* Copyright (C) 2007-2023 Jean-Pierre Charras jp.charras at wanadoo.fr
|
||||||
* Copyright (C) 1992-2022 KiCad Developers, see AUTHORS.txt for contributors.
|
* Copyright (C) 1992-2023 KiCad Developers, see AUTHORS.txt for contributors.
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or
|
* This program is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU General Public License
|
* modify it under the terms of the GNU General Public License
|
||||||
|
@ -182,7 +182,13 @@ void GBR_TO_PCB_EXPORTER::export_non_copper_item( const GERBER_DRAW_ITEM* aGbrIt
|
||||||
case GBR_SPOT_POLY:
|
case GBR_SPOT_POLY:
|
||||||
case GBR_SPOT_MACRO:
|
case GBR_SPOT_MACRO:
|
||||||
d_codeDescr->ConvertShapeToPolygon( aGbrItem );
|
d_codeDescr->ConvertShapeToPolygon( aGbrItem );
|
||||||
writePcbPolygon( d_codeDescr->m_Polygon, aLayer, aGbrItem->GetABPosition( seg_start ) );
|
{
|
||||||
|
SHAPE_POLY_SET polyshape = d_codeDescr->m_Polygon;
|
||||||
|
|
||||||
|
// Compensate the Y axis orientation ( writePcbPolygon invert the Y coordinate )
|
||||||
|
polyshape.Outline( 0 ).Mirror( false, true );
|
||||||
|
writePcbPolygon( polyshape, aLayer, aGbrItem->GetABPosition( seg_start ) );
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case GBR_ARC:
|
case GBR_ARC:
|
||||||
|
|
Loading…
Reference in New Issue