Check for empty bus vectors and allow backwards vector specs.
Fixes https://gitlab.com/kicad/code/kicad/issues/4421
This commit is contained in:
parent
ba301c292a
commit
050191460f
|
@ -522,6 +522,11 @@ bool SCH_CONNECTION::ParseBusVector( const wxString& aBus, wxString* aName,
|
|||
if( braceNesting != 0 )
|
||||
return false;
|
||||
|
||||
if( begin == end )
|
||||
return false;
|
||||
else if( begin > end )
|
||||
std::swap( begin, end );
|
||||
|
||||
if( aName )
|
||||
*aName = prefix;
|
||||
|
||||
|
|
Loading…
Reference in New Issue