From 30b402bc028f6b485d576ad4055ddea3f261d711 Mon Sep 17 00:00:00 2001 From: Jon Evans Date: Mon, 31 Aug 2020 22:05:46 -0400 Subject: [PATCH] Don't set modify flag when deleting markers Fixes https://gitlab.com/kicad/code/kicad/-/issues/5418 --- eeschema/sch_screen.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/eeschema/sch_screen.cpp b/eeschema/sch_screen.cpp index 50f2d67151..d7491f541d 100644 --- a/eeschema/sch_screen.cpp +++ b/eeschema/sch_screen.cpp @@ -282,7 +282,11 @@ void SCH_SCREEN::DeleteItem( SCH_ITEM* aItem ) { wxCHECK_RET( aItem, wxT( "Cannot delete invalid item from screen." ) ); - SetModify(); + // 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 )