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; }