Annotation: disable use next number for page number based annotation

It's broken, so don't allow it.
This commit is contained in:
Mike Williams 2022-07-20 08:54:14 -04:00
parent 17f6c0ecf1
commit 63917c4ef9
1 changed files with 12 additions and 4 deletions

View File

@ -426,19 +426,27 @@ void SCH_REFERENCE_LIST::AnnotateByOptions( ANNOTATE_ORDER_T aSortOp
case SORT_BY_Y_POSITION: SortByYCoordinate(); break; case SORT_BY_Y_POSITION: SortByYCoordinate(); break;
} }
bool useSheetNum = false; bool useSheetNum;
int idStep = 100; int idStep;
switch( aAlgoOption ) switch( aAlgoOption )
{ {
default: default:
case INCREMENTAL_BY_REF: break; case INCREMENTAL_BY_REF:
useSheetNum = false;
idStep = 1;
break;
case SHEET_NUMBER_X_100: useSheetNum = true; break; case SHEET_NUMBER_X_100:
useSheetNum = true;
idStep = 100;
aStartAtCurrent = false; // Not implemented for sheet # * 100
break;
case SHEET_NUMBER_X_1000: case SHEET_NUMBER_X_1000:
useSheetNum = true; useSheetNum = true;
idStep = 1000; idStep = 1000;
aStartAtCurrent = false; // Not implemented for sheet # * 1000
break; break;
} }