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,10 +790,7 @@ void wxTextCtrl::DoSetValue(const wxString& value, int flags)
Replace(0, GetLastPosition(), value); Replace(0, GetLastPosition(), value);
if ( IsSingleLine() ) SetInsertionPoint(0);
{
SetInsertionPoint(0);
}
} }
else // nothing changed else // nothing changed
{ {