router: revert Seth's arc adjustment in StartDragging().

Fixes picking the last segment instead of the last vertex to drag (when one is requested).
I didn't notice any behaviour change of the dragger wrs to arcs.
This commit is contained in:
Tomasz Wlostowski 2021-04-27 00:23:06 +02:00
parent dc70df6036
commit 76f8861e6e
1 changed files with 1 additions and 7 deletions

View File

@ -88,13 +88,7 @@ bool DRAGGER::startDragSegment( const VECTOR2D& aP, SEGMENT* aSeg )
}
else if( distB <= w2 )
{
//todo (snh) Adjust segment for arcs
if( ( m_draggedSegmentIndex < m_draggedLine.PointCount() - 2 ) &&
( m_draggedLine.CLine().CShapes()[ m_draggedSegmentIndex + 1 ] < 0 ) )
{
m_draggedSegmentIndex++;
}
m_draggedSegmentIndex++;
m_mode = DM_CORNER;
}
else if( m_freeAngleMode )