From e14f0848fa0534d737a4c788705c189117da15cc Mon Sep 17 00:00:00 2001
From: Chris Morgan <chmorgan@gmail.com>
Date: Thu, 2 Feb 2023 21:16:01 -0500
Subject: [PATCH] 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
---
 eeschema/tools/sch_editor_control.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/eeschema/tools/sch_editor_control.cpp b/eeschema/tools/sch_editor_control.cpp
index 198409b11a..f2dccdd007 100644
--- a/eeschema/tools/sch_editor_control.cpp
+++ b/eeschema/tools/sch_editor_control.cpp
@@ -1828,7 +1828,7 @@ int SCH_EDITOR_CONTROL::Paste( const TOOL_EVENT& aEvent )
                 annotatedSymbols[instance].ReannotateByOptions( (ANNOTATE_ORDER_T) annotate.sort_order,
                                                                 (ANNOTATE_ALGO_T) annotate.method,
                                                                 annotateStartNum, existingRefs,
-                                                                true,
+                                                                false,
                                                                 &hierarchy );
 
             annotatedSymbols[instance].UpdateAnnotation();