Don't set modify flag when deleting markers
Fixes https://gitlab.com/kicad/code/kicad/-/issues/5418
This commit is contained in:
parent
a9532c2fa1
commit
30b402bc02
|
@ -282,7 +282,11 @@ void SCH_SCREEN::DeleteItem( SCH_ITEM* aItem )
|
||||||
{
|
{
|
||||||
wxCHECK_RET( aItem, wxT( "Cannot delete invalid item from screen." ) );
|
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();
|
SetModify();
|
||||||
|
|
||||||
Remove( aItem );
|
Remove( aItem );
|
||||||
|
|
||||||
if( aItem->Type() == SCH_SHEET_PIN_T )
|
if( aItem->Type() == SCH_SHEET_PIN_T )
|
||||||
|
|
Loading…
Reference in New Issue