Set insertion point to 0 in SetValue for multiline

This commit is contained in:
Kvaz1r
2021-07-27 10:50:24 +03:00
parent 3e675fa75e
commit 5bc725f505

View File

@@ -790,11 +790,8 @@ void wxTextCtrl::DoSetValue(const wxString& value, int flags)
Replace(0, GetLastPosition(), value);
if ( IsSingleLine() )
{
SetInsertionPoint(0);
}
}
else // nothing changed
{
// still send event for consistency