Don't allow motion between two clicks of a dblclick to spoil forceHV.

This commit is contained in:
Jeff Young 2019-05-05 18:38:49 +01:00
parent d881f4b21f
commit 0b2e1d00ea
1 changed files with 4 additions and 1 deletions

View File

@ -682,8 +682,11 @@ int SCH_WIRE_BUS_TOOL::doDrawSegments( int aType, SCH_LINE* aSegment )
}
}
if( evt->IsDblClick( BUT_LEFT ) )
if( evt->IsDblClick( BUT_LEFT ) && aSegment )
{
if( forceHV )
computeBreakPoint( screen, aSegment->Back(), cursorPos );
finishSegments();
aSegment = nullptr;