Browse Source

eeschema: very minorbug fix

pull/1/head
jean-pierre charras 15 years ago
parent
commit
c2cf793f7a
  1. 8
      eeschema/schedit.cpp

8
eeschema/schedit.cpp

@ -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…
Cancel
Save