From d5ac7c031d4ec4f28902b498e27f4b109f9c88d4 Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Fri, 2 Mar 2018 11:46:31 +0100 Subject: [PATCH] Assign net classes to nets before showing the Design Rules dialog It is needed to display nets that have just been imported to the board (e.g. in an update PCB from schematics step). --- pcbnew/dialogs/dialog_design_rules.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pcbnew/dialogs/dialog_design_rules.cpp b/pcbnew/dialogs/dialog_design_rules.cpp index d63706e701..2a55429e50 100644 --- a/pcbnew/dialogs/dialog_design_rules.cpp +++ b/pcbnew/dialogs/dialog_design_rules.cpp @@ -249,6 +249,9 @@ void DIALOG_DESIGN_RULES::InitDialogRules() // Initialize the Rules List InitRulesList(); + // Reassure that all nets have net classes assigned + m_Pcb->BuildListOfNets(); + // copy all NETs into m_AllNets by adding them as NETCUPs. // @todo go fix m_Pcb->SynchronizeNetsAndNetClasses() so that the netcode==0 is not