From: Vadim Zeitlin Date: Fri, 19 Sep 2008 10:13:38 +0000 (+0000) Subject: set selection point to end in wxTextEntryBase::SetValue() as this should be done... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/a5125dc6edfdf0bc1963b8c797da3c874e864549 set selection point to end in wxTextEntryBase::SetValue() as this should be done in all ports and in all controls (fixes a unit test failure for wxComboBox) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55731 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/textentrycmn.cpp b/src/common/textentrycmn.cpp index 4adca176b0..8e0551c3db 100644 --- a/src/common/textentrycmn.cpp +++ b/src/common/textentrycmn.cpp @@ -62,6 +62,8 @@ void wxTextEntryBase::DoSetValue(const wxString& value, int flags) SelectAll(); WriteText(value); + + SetInsertionPoint(0); } void wxTextEntryBase::Replace(long from, long to, const wxString& value) diff --git a/src/gtk/textctrl.cpp b/src/gtk/textctrl.cpp index 71ba5a7020..e30c23e4da 100644 --- a/src/gtk/textctrl.cpp +++ b/src/gtk/textctrl.cpp @@ -1007,9 +1007,6 @@ void wxTextCtrl::DoSetValue( const wxString &value, int flags ) { EnableTextChangedEvents(true); } - - // This was added after discussion on the list - SetInsertionPoint(0); } void wxTextCtrl::WriteText( const wxString &text )