SCH_EDITOR_CONTROL::Paste() - Adjust refdes behavior to match when creating new symbols

Pass 'false' as aStartAtCurrent to ReannotateByOptions(). Causes Pasing() symbols to start at the first available refdes after the currently
configured annotate start number, m_annotateStartNum.

Fixes #13342
This commit is contained in:
Chris Morgan 2023-02-02 21:16:01 -05:00 committed by Mike Williams
parent 4065e413ea
commit e14f0848fa
1 changed files with 1 additions and 1 deletions

View File

@ -1828,7 +1828,7 @@ int SCH_EDITOR_CONTROL::Paste( const TOOL_EVENT& aEvent )
annotatedSymbols[instance].ReannotateByOptions( (ANNOTATE_ORDER_T) annotate.sort_order, annotatedSymbols[instance].ReannotateByOptions( (ANNOTATE_ORDER_T) annotate.sort_order,
(ANNOTATE_ALGO_T) annotate.method, (ANNOTATE_ALGO_T) annotate.method,
annotateStartNum, existingRefs, annotateStartNum, existingRefs,
true, false,
&hierarchy ); &hierarchy );
annotatedSymbols[instance].UpdateAnnotation(); annotatedSymbols[instance].UpdateAnnotation();