From 2ca819a6271a5c4b0dbda3839851ca5a05768991 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Fri, 9 Oct 2020 14:26:09 +0100 Subject: [PATCH] Don't assume a DRC_CONSTRAINT has a parent rule. It will still have a name, though. --- pcbnew/router/pns_kicad_iface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcbnew/router/pns_kicad_iface.cpp b/pcbnew/router/pns_kicad_iface.cpp index f62b80bca5..466cdf97df 100644 --- a/pcbnew/router/pns_kicad_iface.cpp +++ b/pcbnew/router/pns_kicad_iface.cpp @@ -237,7 +237,7 @@ bool PNS_PCBNEW_RULE_RESOLVER::QueryConstraint( PNS::CONSTRAINT_TYPE aType, cons case PNS::CONSTRAINT_TYPE::CT_WIDTH: case PNS::CONSTRAINT_TYPE::CT_DIFF_PAIR_GAP: aConstraint->m_Value = hostConstraint.GetValue(); - aConstraint->m_RuleName = hostConstraint.GetParentRule()->m_Name; + aConstraint->m_RuleName = hostConstraint.GetName(); aConstraint->m_Type = aType; return true; }