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

eeschema: very minorbug fix

parent 0760c126
Loading
Loading
Loading
Loading
+5 −3
Original line number Original line Diff line number Diff line
@@ -585,7 +585,9 @@ void SCH_EDIT_FRAME::OnCancelCurrentCommand( wxCommandEvent& aEvent )
    }
    }
    else
    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() );
            DrawPanel->EndMouseCapture( ID_NO_TOOL_SELECTED, DrawPanel->GetDefaultCursor() );
     }
     }
}
}