Fix: Gerber plot output creates incorrect custom pads when a rectangular anchor pad with x size > y size is used.

Fixes: lp:1738384
https://bugs.launchpad.net/kicad/+bug/1738384
This commit is contained in:
jean-pierre charras 2017-12-15 12:33:28 +01:00
parent 75b21d010b
commit 9ed0f2184b
1 changed files with 1 additions and 1 deletions

View File

@ -854,7 +854,7 @@ void GERBER_PLOTTER::FlashPadCustom( const wxPoint& aPadPos, const wxSize& aSize
// However, because the anchor pad can be circle or rect, we use only
// a circle not bigger than the rect.
// the main purpose is to print a flashed DCode as pad anchor
FlashPadCircle( aPadPos, std::min( aSize.x, aSize.x ), aTraceMode, aData );
FlashPadCircle( aPadPos, std::min( aSize.x, aSize.y ), aTraceMode, aData );
GBR_METADATA gbr_metadata;
if( aData )