diff --git a/eeschema/tools/sch_editor_control.cpp b/eeschema/tools/sch_editor_control.cpp index 72a7ffe480..53a50f65ec 100644 --- a/eeschema/tools/sch_editor_control.cpp +++ b/eeschema/tools/sch_editor_control.cpp @@ -2163,7 +2163,7 @@ int SCH_EDITOR_CONTROL::Paste( const TOOL_EVENT& aEvent ) if( pasteMode == PASTE_MODE::UNIQUE_ANNOTATIONS ) { - annotatedSymbols[path].ReannotateDuplicates( existingRefs, annotateAlgo ); + annotatedSymbols[path].ReannotateDuplicates( existingRefs, annotate.method ); } else { @@ -2185,7 +2185,7 @@ int SCH_EDITOR_CONTROL::Paste( const TOOL_EVENT& aEvent ) if( pasteMode == PASTE_MODE::UNIQUE_ANNOTATIONS ) { - annotatedSymbols[pastedSheetPath].ReannotateDuplicates( existingRefs, annotateAlgo ); + annotatedSymbols[pastedSheetPath].ReannotateDuplicates( existingRefs, annotate.method ); } else {