X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9a83f860948059b0273b5cc6d9e43fadad3ebfca..6f0b6fd1e4b5b2633e1f34c54c8d4f4e5da98637:/src/univ/textctrl.cpp diff --git a/src/univ/textctrl.cpp b/src/univ/textctrl.cpp index 1c2fa3c814..23573fcdd1 100644 --- a/src/univ/textctrl.cpp +++ b/src/univ/textctrl.cpp @@ -1264,8 +1264,7 @@ void wxTextCtrl::Replace(wxTextPos from, wxTextPos to, const wxString& text) // now call it to do the rest (not related to refreshing) ClearSelection(); - if ( EventsAllowed() ) - SendTextUpdatedEvent(); + SendTextUpdatedEventIfAllowed(); } void wxTextCtrl::Remove(wxTextPos from, wxTextPos to)