Don't set modify flag when deleting markers

Fixes https://gitlab.com/kicad/code/kicad/-/issues/5418
This commit is contained in:
Jon Evans 2020-08-31 22:05:46 -04:00
parent a9532c2fa1
commit 30b402bc02
1 changed files with 5 additions and 1 deletions

View File

@ -282,7 +282,11 @@ void SCH_SCREEN::DeleteItem( SCH_ITEM* aItem )
{
wxCHECK_RET( aItem, wxT( "Cannot delete invalid item from screen." ) );
// Markers are not saved in the file, no need to flag as modified.
// TODO: Maybe we should have a listing somewhere of items that aren't saved?
if( aItem->Type() != SCH_MARKER_T )
SetModify();
Remove( aItem );
if( aItem->Type() == SCH_SHEET_PIN_T )