Clear dirty flags after a move.

Fixes https://gitlab.com/kicad/code/kicad/issues/11362
This commit is contained in:
Jeff Young 2023-02-15 13:22:08 +00:00
parent 9dc357486f
commit 40e1296a8b
1 changed files with 5 additions and 0 deletions

View File

@ -130,6 +130,8 @@ void BOARD_COMMIT::dirtyIntersectingZones( BOARD_ITEM* item, int aChangeType )
{
if( aChangeType != CHT_MODIFY || ( child->GetFlags() & IS_MODIFIED_CHILD ) )
dirtyIntersectingZones( child, aChangeType );
child->ClearFlags( IS_MODIFIED_CHILD );
} );
}
else if( item->Type() == PCB_GROUP_T )
@ -138,6 +140,7 @@ void BOARD_COMMIT::dirtyIntersectingZones( BOARD_ITEM* item, int aChangeType )
[&]( BOARD_ITEM* child )
{
dirtyIntersectingZones( child, aChangeType );
child->ClearFlags( IS_MODIFIED_CHILD );
} );
}
else
@ -165,6 +168,8 @@ void BOARD_COMMIT::dirtyIntersectingZones( BOARD_ITEM* item, int aChangeType )
}
}
}
item->ClearFlags( IS_MODIFIED_CHILD );
}
}