From 3e7e7dd24c36066607276227fc8bb5c3bf8f4fd9 Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Wed, 1 Apr 2020 10:23:44 -0700 Subject: [PATCH] Avoid generating wxEVT_TEXT when wxTextCtrl initial value is not empty See #18714 --- src/gtk/textctrl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gtk/textctrl.cpp b/src/gtk/textctrl.cpp index aa1411fb08..a5494c269b 100644 --- a/src/gtk/textctrl.cpp +++ b/src/gtk/textctrl.cpp @@ -816,7 +816,7 @@ bool wxTextCtrl::Create( wxWindow *parent, if (!value.empty()) { - SetValue( value ); + ChangeValue(value); InvalidateBestSize(); }