Ratsnest lines for zones are removed when a zone is dragged.
This commit is contained in:
parent
3f5c3d4349
commit
f6aa447036
|
@ -521,7 +521,12 @@ void RN_NET::RemoveItem( const ZONE_CONTAINER* aZone )
|
||||||
// Remove all subpolygons that make the zone
|
// Remove all subpolygons that make the zone
|
||||||
std::deque<RN_POLY>& polygons = m_zonePolygons.at( aZone );
|
std::deque<RN_POLY>& polygons = m_zonePolygons.at( aZone );
|
||||||
BOOST_FOREACH( RN_POLY& polygon, polygons )
|
BOOST_FOREACH( RN_POLY& polygon, polygons )
|
||||||
m_links.RemoveNode( polygon.GetNode() );
|
{
|
||||||
|
const RN_NODE_PTR node = polygon.GetNode();
|
||||||
|
|
||||||
|
if( m_links.RemoveNode( node ) )
|
||||||
|
clearNode( node );
|
||||||
|
}
|
||||||
polygons.clear();
|
polygons.clear();
|
||||||
|
|
||||||
// Remove all connections added by the zone
|
// Remove all connections added by the zone
|
||||||
|
|
Loading…
Reference in New Issue