Don't go to '-' numbering till the range reaches 3.
This commit is contained in:
parent
d953724365
commit
c4ff17d3ec
|
@ -838,10 +838,16 @@ wxString SCH_REFERENCE_LIST::Shorthand( std::vector<SCH_REFERENCE> 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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue