]> git.saurik.com Git - wxWidgets.git/commitdiff
set selection point to end in wxTextEntryBase::SetValue() as this should be done...
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 19 Sep 2008 10:13:38 +0000 (10:13 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 19 Sep 2008 10:13:38 +0000 (10:13 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55731 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/textentrycmn.cpp
src/gtk/textctrl.cpp

index 4adca176b049568a93603b7ffe79127742fdf709..8e0551c3dbac703c86d23859cbc64cf0ace15b9e 100644 (file)
@@ -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)
index 71ba5a70209efeb4a6f2d0ecd5d452e5139dae7b..e30c23e4da3e16a6c1facb586dcde0c5c32ea86e 100644 (file)
@@ -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 )