Dialog copper zones: add test for thermal spoke width > zone min thickness.

Fixes: lp:1789929
https://bugs.launchpad.net/kicad/+bug/1789929
This commit is contained in:
jean-pierre charras 2018-09-03 13:57:11 +02:00
parent 27b62c66b3
commit 0d09128f6c
1 changed files with 7 additions and 0 deletions

View File

@ -278,6 +278,13 @@ bool DIALOG_COPPER_ZONE::AcceptOptions( bool aUseExportableSetupOnly )
m_settings.m_ThermalReliefGap = m_antipadClearance.GetValue();
m_settings.m_ThermalReliefCopperBridge = m_spokeWidth.GetValue();
if( m_settings.m_ThermalReliefCopperBridge <= m_settings.m_ZoneMinThickness )
{
DisplayError( this,
_( "Thermal relief spoke must be greater than the minimum width." ) );
return false;
}
if( m_Config )
{
ConfigBaseWriteDouble( m_Config, ZONE_CLEARANCE_WIDTH_STRING_KEY,