eeschema: very minorbug fix

This commit is contained in:
jean-pierre charras 2011-03-05 11:35:18 +01:00
parent 0760c126ed
commit c2cf793f7a
1 changed files with 5 additions and 3 deletions

View File

@ -585,7 +585,9 @@ void SCH_EDIT_FRAME::OnCancelCurrentCommand( wxCommandEvent& aEvent )
}
else
{
// Stop the current command (if any) but keep the current tool
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() );
}
}