Ensure we clear forced position
Fixes https://gitlab.com/kicad/code/kicad/issues/5699
This commit is contained in:
parent
5e0d79449e
commit
4fa3de2211
|
@ -279,7 +279,7 @@ int SCH_LINE_WIRE_BUS_TOOL::DrawSegments( const TOOL_EVENT& aEvent )
|
||||||
SCH_LAYER_ID layer = aEvent.Parameter<SCH_LAYER_ID>();
|
SCH_LAYER_ID layer = aEvent.Parameter<SCH_LAYER_ID>();
|
||||||
|
|
||||||
if( aEvent.HasPosition() )
|
if( aEvent.HasPosition() )
|
||||||
getViewControls()->WarpCursor( getViewControls()->GetCursorPosition(), true );
|
getViewControls()->WarpCursor( aEvent.Position(), true );
|
||||||
|
|
||||||
std::string tool = aEvent.GetCommandStr().get();
|
std::string tool = aEvent.GetCommandStr().get();
|
||||||
m_frame->PushTool( tool );
|
m_frame->PushTool( tool );
|
||||||
|
@ -705,6 +705,7 @@ int SCH_LINE_WIRE_BUS_TOOL::doDrawSegments( const std::string& aTool, int aType
|
||||||
controls->CaptureCursor( segment != nullptr );
|
controls->CaptureCursor( segment != nullptr );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
controls->ForceCursorPosition( false );
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue