Allow netclass assignents to unnamed nets.

Most of the code had already moved over to this, but there were a few
hold-outs.

Fixes https://gitlab.com/kicad/code/kicad/issues/7802
This commit is contained in:
Jeff Young 2021-03-05 19:14:53 +00:00
parent 5baaea9876
commit b691c18bfc
2 changed files with 3 additions and 7 deletions

View File

@ -199,7 +199,7 @@ std::vector<wxString> SCHEMATIC::GetNetClassAssignmentCandidates()
{
CONNECTION_SUBGRAPH* subgraph = pair.second[0];
if( subgraph->GetDriverPriority() > CONNECTION_SUBGRAPH::PRIORITY::PIN )
if( subgraph->GetDriverPriority() >= CONNECTION_SUBGRAPH::PRIORITY::PIN )
names.emplace_back( pair.first.first );
}

View File

@ -1,8 +1,3 @@
/**
* @file board_netlist_updater.h
* @brief BOARD_NETLIST_UPDATER class definition
*/
/*
* This program source code file is part of KiCad, a free EDA CAD application.
*
@ -11,7 +6,7 @@
* Copyright (C) 2012 SoftPLC Corporation, Dick Hollenbeck <dick@softplc.com>
* Copyright (C) 2011 Wayne Stambaugh <stambaughw@verizon.net>
*
* Copyright (C) 1992-2019 KiCad Developers, see AUTHORS.txt for contributors.
* Copyright (C) 1992-2021 KiCad Developers, see AUTHORS.txt for contributors.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
@ -946,6 +941,7 @@ bool BOARD_NETLIST_UPDATER::UpdateNetlist( NETLIST& aNetlist )
m_commit.Push( _( "Update netlist" ) );
m_board->SynchronizeNetsAndNetClasses();
m_frame->SaveProjectSettings();
}
else if( m_deleteSinglePadNets && !m_newFootprintsCount )
{