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).
This commit is contained in:
Maciej Suminski 2018-03-02 11:46:31 +01:00
parent 1ac5ec1fc8
commit d5ac7c031d
1 changed files with 3 additions and 0 deletions

View File

@ -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