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:
parent
9c1c609fa3
commit
4135f0c0e7
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue