diff --git a/eeschema/sch_connection.cpp b/eeschema/sch_connection.cpp index 61486f7b8b..02542335fb 100644 --- a/eeschema/sch_connection.cpp +++ b/eeschema/sch_connection.cpp @@ -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;