Don't select all if there is nothing to select.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@63373 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2819,12 +2819,13 @@ void wxRichTextCtrl::OnUpdateRedo(wxUpdateUIEvent& event)
|
||||
|
||||
void wxRichTextCtrl::OnSelectAll(wxCommandEvent& WXUNUSED(event))
|
||||
{
|
||||
SelectAll();
|
||||
if (GetLastPosition() > 0)
|
||||
SelectAll();
|
||||
}
|
||||
|
||||
void wxRichTextCtrl::OnUpdateSelectAll(wxUpdateUIEvent& event)
|
||||
{
|
||||
event.Enable(GetLastPosition() >= 0);
|
||||
event.Enable(GetLastPosition() > 0);
|
||||
}
|
||||
|
||||
void wxRichTextCtrl::OnContextMenu(wxContextMenuEvent& event)
|
||||
|
Reference in New Issue
Block a user