pcbnew: Remove corners from graphical polygons

Cherry-picked item from 5.0 allowed this action for modedit but missed
pcbnew.  This allows the same action in pcbnew as well.
This commit is contained in:
Seth Hillbrand 2018-12-09 08:14:45 -08:00
parent 47fe01f793
commit 7ed1968f60
1 changed files with 2 additions and 1 deletions

View File

@ -926,7 +926,8 @@ bool POINT_EDITOR::removeCornerCondition( const SELECTION& )
EDA_ITEM* item = m_editPoints->GetParent();
if( !item || !( item->Type() == PCB_ZONE_AREA_T || ( item->Type() == PCB_MODULE_EDGE_T &&
if( !item || !( item->Type() == PCB_ZONE_AREA_T ||
( ( item->Type() == PCB_MODULE_EDGE_T || item->Type() == PCB_LINE_T ) &&
static_cast<DRAWSEGMENT*>( item )->GetShape() == S_POLYGON ) ) )
return false;