Don't interpred IS_CHANGED as busy.

Fixes https://gitlab.com/kicad/code/kicad/issues/11570
This commit is contained in:
Jeff Young 2022-05-06 22:36:08 +01:00
parent 7e20c0ed9c
commit 717ea48395
1 changed files with 3 additions and 1 deletions

View File

@ -46,7 +46,9 @@ bool SELECTION_CONDITIONS::Empty( const SELECTION& aSelection )
bool SELECTION_CONDITIONS::Idle( 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;
} }