A few zone outline context menu commands missing after creating a keepout area

( partial fix of lp:1630368 )
This commit is contained in:
jean-pierre charras 2016-10-05 15:12:10 +02:00
parent 15517964c9
commit 4505896634
2 changed files with 2 additions and 3 deletions

View File

@ -320,8 +320,7 @@ void ZONE_CONTAINER::DrawFilledArea( EDA_DRAW_PANEL* panel,
m_ZoneMinThickness, color );
else
GRFillCSegm( panel->GetClipBox(), DC,
x0, y0, x1, y1,
m_ZoneMinThickness, color );
x0, y0, x1, y1, m_ZoneMinThickness, color );
}
}

View File

@ -768,7 +768,6 @@ bool PCB_EDIT_FRAME::End_Zone( wxDC* DC )
{
zone->Outline()->CloseLastContour(); // Close the current corner list
GetBoard()->Add( zone );
GetBoard()->m_CurrentZoneContour = NULL;
// Add this zone in picked list, as new item
ITEM_PICKER picker( zone, UR_NEW );
@ -788,6 +787,7 @@ bool PCB_EDIT_FRAME::End_Zone( wxDC* DC )
s_AddCutoutToCurrentZone = false;
s_CurrentZone = NULL;
GetBoard()->m_CurrentZoneContour = NULL;
GetScreen()->SetCurItem( NULL ); // This outline can be deleted when merging outlines