fixed bug with the caret positioning after SetValue() introduced by the last commit

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12948 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2001-12-09 01:39:54 +00:00
parent 0627d0917b
commit af01f1ba0d

View 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);
}
}