From 0d09128f6cc7537d0d6be68a9725a562c33d29c4 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Mon, 3 Sep 2018 13:57:11 +0200 Subject: [PATCH] Dialog copper zones: add test for thermal spoke width > zone min thickness. Fixes: lp:1789929 https://bugs.launchpad.net/kicad/+bug/1789929 --- pcbnew/dialogs/dialog_copper_zones.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pcbnew/dialogs/dialog_copper_zones.cpp b/pcbnew/dialogs/dialog_copper_zones.cpp index d8699c647b..cebb206a1d 100644 --- a/pcbnew/dialogs/dialog_copper_zones.cpp +++ b/pcbnew/dialogs/dialog_copper_zones.cpp @@ -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,