From 0c723778f063363c271518e7a6f620c195c543aa Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Tue, 22 Jan 2019 19:01:32 -0800 Subject: [PATCH] pcbnew: Set default missing soldermask min width When loading an existing file, a missing value in the soldermask min width value should not be interpreted as a default value but rather as a 0 value. This corrects an issue introduced by 4d709d2392387d6f4e58b5ee015b2e482ee2e94c --- pcbnew/pcb_parser.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pcbnew/pcb_parser.cpp b/pcbnew/pcb_parser.cpp index 91de6234b4..408a78132f 100644 --- a/pcbnew/pcb_parser.cpp +++ b/pcbnew/pcb_parser.cpp @@ -1111,6 +1111,10 @@ void PCB_PARSER::parseSetup() BOARD_DESIGN_SETTINGS designSettings = m_board->GetDesignSettings(); ZONE_SETTINGS zoneSettings = m_board->GetZoneSettings(); + // Missing soldermask min width value means that the user has set the value to 0 and + // not the default value (0.25mm) + designSettings.m_SolderMaskMinWidth = 0; + for( token = NextTok(); token != T_RIGHT; token = NextTok() ) { if( token != T_LEFT )