projects
/
wxWidgets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fc6d9d0
)
Don't select all if there is nothing to select.
author
Julian Smart
<julian@anthemion.co.uk>
Wed, 3 Feb 2010 11:43:08 +0000
(11:43 +0000)
committer
Julian Smart
<julian@anthemion.co.uk>
Wed, 3 Feb 2010 11:43:08 +0000
(11:43 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63374
c3d73ce0
-8a6f-49c7-b76d-
6d57e0e08775
src/richtext/richtextctrl.cpp
patch
|
blob
|
blame
|
history
diff --git
a/src/richtext/richtextctrl.cpp
b/src/richtext/richtextctrl.cpp
index 300a87d678d356863e61ead075e533a57ba094c3..be2bc269ee5185a1612451b0463ad9835fea250b 100644
(file)
--- a/
src/richtext/richtextctrl.cpp
+++ b/
src/richtext/richtextctrl.cpp
@@
-2812,12
+2812,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)