Pcbnew: fix bug : footprint editor: shape offset was ignored when placing new pads. Was also ignored in global pad change in fp editor and board editor.
This commit is contained in:
parent
d682e4d7fa
commit
f4525875f1
|
@ -369,7 +369,6 @@ void PCB_BASE_FRAME::GlobalChange_PadSettings( D_PAD* aPad,
|
||||||
case PAD_ATTRIB_SMD:
|
case PAD_ATTRIB_SMD:
|
||||||
case PAD_ATTRIB_CONN:
|
case PAD_ATTRIB_CONN:
|
||||||
pad->SetDrillSize( wxSize( 0, 0 ) );
|
pad->SetDrillSize( wxSize( 0, 0 ) );
|
||||||
pad->SetOffset( wxPoint( 0, 0 ) );
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
|
|
@ -62,6 +62,7 @@ void PCB_BASE_FRAME::Export_Pad_Settings( D_PAD* aPad )
|
||||||
|
|
||||||
/* Imports the board design settings to aPad
|
/* Imports the board design settings to aPad
|
||||||
* - The position, names, and keys are not modifed.
|
* - The position, names, and keys are not modifed.
|
||||||
|
* The parameters are expected to be correct (i.e. settings are valid)
|
||||||
*/
|
*/
|
||||||
void PCB_BASE_FRAME::Import_Pad_Settings( D_PAD* aPad, bool aDraw )
|
void PCB_BASE_FRAME::Import_Pad_Settings( D_PAD* aPad, bool aDraw )
|
||||||
{
|
{
|
||||||
|
@ -104,8 +105,9 @@ void PCB_BASE_FRAME::Import_Pad_Settings( D_PAD* aPad, bool aDraw )
|
||||||
{
|
{
|
||||||
case PAD_ATTRIB_SMD:
|
case PAD_ATTRIB_SMD:
|
||||||
case PAD_ATTRIB_CONN:
|
case PAD_ATTRIB_CONN:
|
||||||
|
// These pads do not have hole (they are expected to be only on one
|
||||||
|
// external copper layer)
|
||||||
aPad->SetDrillSize( wxSize( 0, 0 ) );
|
aPad->SetDrillSize( wxSize( 0, 0 ) );
|
||||||
aPad->SetOffset( wxPoint( 0, 0 ) );
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in New Issue