Pad properties dialog needs to edit the local value, not the resultant value.

Fixes: lp:1838618
* https://bugs.launchpad.net/kicad/+bug/1838618
This commit is contained in:
Jeff Young 2019-08-05 21:37:21 -06:00
parent f59b3a0210
commit edc05b5d54
2 changed files with 2 additions and 1 deletions

View File

@ -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;

View File

@ -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;