From 13eb4d73da50a265119c6b9178d8a6a77f6afd99 Mon Sep 17 00:00:00 2001 From: Thomas Pointhuber Date: Mon, 6 Apr 2020 17:45:02 +0200 Subject: [PATCH] altium: fix segfault due to incorrect check --- pcbnew/altium2kicadpcb_plugin/altium_pcb.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcbnew/altium2kicadpcb_plugin/altium_pcb.cpp b/pcbnew/altium2kicadpcb_plugin/altium_pcb.cpp index a296e10a18..313c5c9cbf 100644 --- a/pcbnew/altium2kicadpcb_plugin/altium_pcb.cpp +++ b/pcbnew/altium2kicadpcb_plugin/altium_pcb.cpp @@ -1013,7 +1013,7 @@ void ALTIUM_PCB::ParsePolygons6Data( zone->SetZoneClearance( clearanceRule->planeclearanceClearance ); } const ARULE6* polygonConnectRule = GetRuleDefault( ALTIUM_RULE_KIND::POLYGON_CONNECT ); - if( clearanceRule != nullptr ) + if( polygonConnectRule != nullptr ) { // TODO: correct variables? zone->SetThermalReliefCopperBridge(