diff --git a/pcbnew/pad.cpp b/pcbnew/pad.cpp index 7eec6a5ad8..8f49a94052 100644 --- a/pcbnew/pad.cpp +++ b/pcbnew/pad.cpp @@ -1487,10 +1487,10 @@ void PAD::ImportSettingsFrom( const PAD& aMasterPad ) // The pad orientation, for historical reasons is the pad rotation + parent rotation. EDA_ANGLE pad_rot = aMasterPad.GetOrientation(); - if( aMasterPad.GetParent() ) + if( aMasterPad.GetParentFootprint() ) pad_rot -= aMasterPad.GetParentFootprint()->GetOrientation(); - if( GetParent() ) + if( GetParentFootprint() ) pad_rot += GetParentFootprint()->GetOrientation(); SetOrientation( pad_rot );