From 5bc725f505fb34069792af7e2a48540f022c921a Mon Sep 17 00:00:00 2001 From: Kvaz1r Date: Tue, 27 Jul 2021 10:50:24 +0300 Subject: [PATCH] Set insertion point to 0 in SetValue for multiline --- src/univ/textctrl.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/univ/textctrl.cpp b/src/univ/textctrl.cpp index c8f6884599..ac69ed1e4a 100644 --- a/src/univ/textctrl.cpp +++ b/src/univ/textctrl.cpp @@ -790,10 +790,7 @@ void wxTextCtrl::DoSetValue(const wxString& value, int flags) Replace(0, GetLastPosition(), value); - if ( IsSingleLine() ) - { - SetInsertionPoint(0); - } + SetInsertionPoint(0); } else // nothing changed {