From 717ea48395552a6e440b08c4c8ebfa021425c4d1 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Fri, 6 May 2022 22:36:08 +0100 Subject: [PATCH] Don't interpred IS_CHANGED as busy. Fixes https://gitlab.com/kicad/code/kicad/issues/11570 --- common/tool/selection_conditions.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common/tool/selection_conditions.cpp b/common/tool/selection_conditions.cpp index 954ad71bd1..407c90dc27 100644 --- a/common/tool/selection_conditions.cpp +++ b/common/tool/selection_conditions.cpp @@ -46,7 +46,9 @@ bool SELECTION_CONDITIONS::Empty( const SELECTION& aSelection ) bool SELECTION_CONDITIONS::Idle( const SELECTION& aSelection ) { - return ( !aSelection.Front() || aSelection.Front()->GetEditFlags() == 0 ); + constexpr int busyMask = ( IS_NEW | IS_PASTED | IS_MOVING | IS_RESIZING | IS_DRAGGING ); + + return !aSelection.Front() || ( aSelection.Front()->GetEditFlags() & busyMask ) == 0; }