Commit c2cf793f authored by jean-pierre charras's avatar jean-pierre charras

eeschema: very minorbug fix

parent 0760c126
......@@ -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() );
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment