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:
parent
27b62c66b3
commit
0d09128f6c
|
@ -278,6 +278,13 @@ bool DIALOG_COPPER_ZONE::AcceptOptions( bool aUseExportableSetupOnly )
|
||||||
m_settings.m_ThermalReliefGap = m_antipadClearance.GetValue();
|
m_settings.m_ThermalReliefGap = m_antipadClearance.GetValue();
|
||||||
m_settings.m_ThermalReliefCopperBridge = m_spokeWidth.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 )
|
if( m_Config )
|
||||||
{
|
{
|
||||||
ConfigBaseWriteDouble( m_Config, ZONE_CLEARANCE_WIDTH_STRING_KEY,
|
ConfigBaseWriteDouble( m_Config, ZONE_CLEARANCE_WIDTH_STRING_KEY,
|
||||||
|
|
Loading…
Reference in New Issue