Do not pattern-match against the empty net
Fixes https://gitlab.com/kicad/code/kicad/-/issues/13412
This commit is contained in:
parent
8dc7baad3d
commit
2f7f41b090
|
@ -382,6 +382,10 @@ std::shared_ptr<NETCLASS> NET_SETTINGS::GetEffectiveNetClass( const wxString& aN
|
|||
return ii->second;
|
||||
};
|
||||
|
||||
// <no net> is forced to be part of the Default netclass.
|
||||
if( aNetName.IsEmpty() )
|
||||
return m_DefaultNetClass;
|
||||
|
||||
auto it = m_NetClassLabelAssignments.find( aNetName );
|
||||
|
||||
if( it != m_NetClassLabelAssignments.end() )
|
||||
|
|
Loading…
Reference in New Issue