diff --git a/pcbnew/class_pad.h b/pcbnew/class_pad.h index 15ba0b27db..2b97388738 100644 --- a/pcbnew/class_pad.h +++ b/pcbnew/class_pad.h @@ -506,6 +506,7 @@ public: void SetZoneConnection( ZoneConnection aType ) { m_ZoneConnection = aType; } ZoneConnection GetZoneConnection() const; + ZoneConnection GetLocalZoneConnection() const { return m_ZoneConnection; } void SetThermalWidth( int aWidth ) { m_ThermalWidth = aWidth; } int GetThermalWidth() const; diff --git a/pcbnew/dialogs/dialog_pad_properties.cpp b/pcbnew/dialogs/dialog_pad_properties.cpp index 8f001379e1..32a8c84d4a 100644 --- a/pcbnew/dialogs/dialog_pad_properties.cpp +++ b/pcbnew/dialogs/dialog_pad_properties.cpp @@ -669,7 +669,7 @@ void DIALOG_PAD_PROPERTIES::initValues() else m_SolderPasteMarginRatioCtrl->SetValue( msg ); - switch( m_dummyPad->GetZoneConnection() ) + switch( m_dummyPad->GetLocalZoneConnection() ) { default: case PAD_ZONE_CONN_INHERITED: m_ZoneConnectionChoice->SetSelection( 0 ); break;