Loading eeschema/schedit.cpp +5 −3 Original line number Original line Diff line number Diff line Loading @@ -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() ); } } } } Loading Loading
eeschema/schedit.cpp +5 −3 Original line number Original line Diff line number Diff line Loading @@ -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() ); } } } } Loading