diff --git a/eeschema/component_references_lister.cpp b/eeschema/component_references_lister.cpp index c2b58a42d3..c3e023e694 100644 --- a/eeschema/component_references_lister.cpp +++ b/eeschema/component_references_lister.cpp @@ -838,10 +838,16 @@ wxString SCH_REFERENCE_LIST::Shorthand( std::vector aList ) { retVal << ref << aList[ i ].GetRefNumber(); } + else if( range == 2 ) + { + retVal << ref << aList[ i ].GetRefNumber(); + retVal << wxT( ", " ); + retVal << ref << aList[ i + 1 ].GetRefNumber(); + } else { retVal << ref << aList[ i ].GetRefNumber(); - retVal << wxT( " - " ); + retVal << wxT( "-" ); retVal << ref << aList[ i + ( range - 1 ) ].GetRefNumber(); }