From 23086deccdf91ab55fa762f5b4b991efe0ccd5ec Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Tue, 12 Mar 2019 11:28:07 +0100 Subject: [PATCH] Pcbnew fix: chamfered corners settings not copied with copy/paste pad properties Fixes: lp:1819595 https://bugs.launchpad.net/kicad/+bug/1819595 --- common/dialog_shim.cpp | 1 + pcbnew/class_pad.cpp | 2 ++ 2 files changed, 3 insertions(+) diff --git a/common/dialog_shim.cpp b/common/dialog_shim.cpp index 3e04a299db..a4d5f58163 100644 --- a/common/dialog_shim.cpp +++ b/common/dialog_shim.cpp @@ -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 ); diff --git a/pcbnew/class_pad.cpp b/pcbnew/class_pad.cpp index 6f14a281be..4509f1e8f2 100644 --- a/pcbnew/class_pad.cpp +++ b/pcbnew/class_pad.cpp @@ -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() ) {