From 1c1849ec1a6614247abe4c623c086def2b3192e0 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Sat, 24 Jun 2023 17:06:57 +0100 Subject: [PATCH] Clear IS_MOVING (as well as IS_NEW) in SCH_COMMIT::Push(). Fixes https://gitlab.com/kicad/code/kicad/-/issues/15051 --- eeschema/sch_commit.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eeschema/sch_commit.cpp b/eeschema/sch_commit.cpp index 105d363982..c901066baa 100644 --- a/eeschema/sch_commit.cpp +++ b/eeschema/sch_commit.cpp @@ -250,8 +250,6 @@ void SCH_COMMIT::pushSchEdit( const wxString& aMessage, int aCommitFlags ) bulkAddedItems.push_back( schItem ); - schItem->ClearFlags( IS_NEW ); - break; } @@ -317,6 +315,8 @@ void SCH_COMMIT::pushSchEdit( const wxString& aMessage, int aCommitFlags ) wxASSERT( false ); break; } + + schItem->ClearFlags( IS_NEW | IS_MOVING ); } if( frame )