]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed bug with the caret positioning after SetValue() introduced by the last commit
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 9 Dec 2001 01:39:54 +0000 (01:39 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 9 Dec 2001 01:39:54 +0000 (01:39 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12948 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/textctrl.cpp

index b8b44e6c6d3a4b2c8bb006c39fac51681136386b..4282e711fe633b58402e843df7e34f125633bfdb 100644 (file)
@@ -433,6 +433,9 @@ void wxTextCtrl::SetValue(const wxString& value)
         Clear();
 
         WriteText(value);
+
+        // for compatibility, don't move the cursor when doing SetValue()
+        SetInsertionPoint(0);
     }
 }