From 63917c4ef975fce757bf78d6e5ec394cd3789416 Mon Sep 17 00:00:00 2001 From: Mike Williams Date: Wed, 20 Jul 2022 08:54:14 -0400 Subject: [PATCH] Annotation: disable use next number for page number based annotation It's broken, so don't allow it. --- eeschema/component_references_lister.cpp | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/eeschema/component_references_lister.cpp b/eeschema/component_references_lister.cpp index 2a33b56e77..bbf778773f 100644 --- a/eeschema/component_references_lister.cpp +++ b/eeschema/component_references_lister.cpp @@ -426,19 +426,27 @@ void SCH_REFERENCE_LIST::AnnotateByOptions( ANNOTATE_ORDER_T aSortOp case SORT_BY_Y_POSITION: SortByYCoordinate(); break; } - bool useSheetNum = false; - int idStep = 100; + bool useSheetNum; + int idStep; switch( aAlgoOption ) { 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: useSheetNum = true; idStep = 1000; + aStartAtCurrent = false; // Not implemented for sheet # * 1000 break; }