SCH_COMMIT: when clearing all item flags, do not clear all item flags.

If a item is selected, its SELECTED, STARTPOINT and ENDPOINT flags cannot be cleared,
and must be still selected after changes to allow more move, rotate... commands.
Fix to previous commit 741c6f2d
This commit is contained in:
jean-pierre charras 2023-10-05 16:46:04 +02:00
parent 0876fb0985
commit 706b42e6f2
1 changed files with 3 additions and 3 deletions

View File

@ -302,9 +302,9 @@ void SCH_COMMIT::pushSchEdit( const wxString& aMessage, int aCommitFlags )
break;
}
// Clear all flags but SELECTED, after edition
// (selected items must keep their selection flag).
const int selected_mask = ( SELECTED | SELECTED_BY_DRAG );
// Clear all flags but SELECTED and others used to move and rotate commands,
// after edition (selected items must keep their selection flag).
const int selected_mask = ( SELECTED | STARTPOINT | ENDPOINT );
schItem->ClearFlags( EDA_ITEM_ALL_FLAGS - selected_mask );
}