Don't go to '-' numbering till the range reaches 3.
(cherry picked from commit c4ff17d3ec
)
This commit is contained in:
parent
940b08ab85
commit
187d7729ff
|
@ -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