pcbnew: Don't duplicate tracks

Dragging in freeangle mode can be forced, in which case, we don't want
the extra line from the SHOVE element.

Fixes: lp:1845844
* https://bugs.launchpad.net/kicad/+bug/1845844
This commit is contained in:
Seth Hillbrand 2019-10-30 07:43:24 -07:00
parent 9c1c609fa3
commit 4135f0c0e7
1 changed files with 1 additions and 1 deletions

View File

@ -136,7 +136,7 @@ bool DRAGGER::Start( const VECTOR2I& aP, ITEM* aStartItem )
m_currentMode = Settings().Mode();
m_freeAngleMode = (m_mode & DM_FREE_ANGLE);
if( m_currentMode != RM_MarkObstacles )
if( m_currentMode != RM_MarkObstacles && !m_freeAngleMode )
m_shove = std::make_unique<SHOVE>( m_world, Router() );
aStartItem->Unmark( MK_LOCKED );