Pcbnew fix: chamfered corners settings not copied with copy/paste pad properties

Fixes: lp:1819595
https://bugs.launchpad.net/kicad/+bug/1819595
This commit is contained in:
jean-pierre charras 2019-03-12 11:28:07 +01:00
parent 6006703798
commit 23086deccd
2 changed files with 3 additions and 0 deletions

View File

@ -234,6 +234,7 @@ bool DIALOG_SHIM::Enable( bool enable )
#if defined(DEBUG)
const char* type_id = typeid( *this ).name();
printf( "wxDialog %s: %s\n", type_id, enable ? "enabled" : "disabled" );
fflush(0); //Needed on msys2 to immediately print the message
#endif
return wxDialog::Enable( enable );

View File

@ -1485,6 +1485,8 @@ void D_PAD::ImportSettingsFromMaster( const D_PAD& aMasterPad )
SetDrillSize( aMasterPad.GetDrillSize() );
SetDrillShape( aMasterPad.GetDrillShape() );
SetRoundRectRadiusRatio( aMasterPad.GetRoundRectRadiusRatio() );
SetChamferRectRatio( aMasterPad.GetChamferRectRatio() );
SetChamferPositions( aMasterPad.GetChamferPositions() );
switch( aMasterPad.GetShape() )
{