From 95ec23247cb453f6464f0ec7d25ba39ab408b5a8 Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Wed, 13 Oct 2021 08:59:48 -0700 Subject: [PATCH] Initialize zone vars in CTOR --- pcbnew/zone.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pcbnew/zone.cpp b/pcbnew/zone.cpp index 74d2171636..177540d74d 100644 --- a/pcbnew/zone.cpp +++ b/pcbnew/zone.cpp @@ -74,7 +74,11 @@ ZONE::ZONE( BOARD_ITEM_CONTAINER* aParent, bool aInFP ) : m_islandRemovalMode = ISLAND_REMOVAL_MODE::ALWAYS; aParent->GetZoneSettings().ExportSetting( *this ); - m_needRefill = false; // True only after some edition. + m_ZoneMinThickness = Mils2iu( ZONE_THICKNESS_MIL ); + m_thermalReliefSpokeWidth = Mils2iu( ZONE_THERMAL_RELIEF_COPPER_WIDTH_MIL ); + m_thermalReliefGap = Mils2iu( ZONE_THERMAL_RELIEF_GAP_MIL ); + + m_needRefill = false; // True only after edits. }