eeschema: very minorbug fix
This commit is contained in:
parent
0760c126ed
commit
c2cf793f7a
|
@ -585,9 +585,11 @@ void SCH_EDIT_FRAME::OnCancelCurrentCommand( wxCommandEvent& aEvent )
|
|||
}
|
||||
else
|
||||
{
|
||||
// Stop the current command (if any) but keep the current tool
|
||||
DrawPanel->EndMouseCapture( ID_NO_TOOL_SELECTED, DrawPanel->GetDefaultCursor() );
|
||||
}
|
||||
if( DrawPanel->IsMouseCaptured() ) // Stop the current command but keep the current tool
|
||||
DrawPanel->EndMouseCapture();
|
||||
else // Deselect current tool
|
||||
DrawPanel->EndMouseCapture( ID_NO_TOOL_SELECTED, DrawPanel->GetDefaultCursor() );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue