X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6e9e2d94b4acddfe170008eaa46a835df9e8c2a3..2b0246530d08cf7724d94c70d631c166f9717c2c:/src/msw/textctrl.cpp diff --git a/src/msw/textctrl.cpp b/src/msw/textctrl.cpp index a04437dc77..3beeae7206 100644 --- a/src/msw/textctrl.cpp +++ b/src/msw/textctrl.cpp @@ -809,7 +809,10 @@ wxTextCtrl::StreamIn(const wxString& value, (selectionOnly ? SFF_SELECTION : 0), (LPARAM)&eds); - wxASSERT_MSG( ucf.GotUpdate(), _T("EM_STREAMIN didn't send EN_UPDATE?") ); + // It's okay for EN_UPDATE to not be sent if the selection is empty and + // the text is empty, otherwise warn the programmer about it. + wxASSERT_MSG( ucf.GotUpdate() || ( !HasSelection() && value.empty() ), + _T("EM_STREAMIN didn't send EN_UPDATE?") ); if ( eds.dwError ) {