pcbnew: Add a number of missing handles for module zones

This commit is contained in:
Seth Hillbrand
2020-06-14 07:23:10 -07:00
parent 09eee84a3e
commit 491ac0256d
5 changed files with 16 additions and 1 deletions
+2 -1
View File
@@ -149,7 +149,8 @@ void BOARD_COMMIT::Push( const wxString& aMessage, bool aCreateUndoEntry, bool a
board->Modules().front()->Add( boardItem );
}
else if( boardItem->Type() == PCB_MODULE_TEXT_T ||
boardItem->Type() == PCB_MODULE_EDGE_T )
boardItem->Type() == PCB_MODULE_EDGE_T ||
boardItem->Type() == PCB_MODULE_ZONE_AREA_T )
{
wxASSERT( boardItem->GetParent() &&
boardItem->GetParent()->Type() == PCB_MODULE_T );