From 07601f59450069025a45bd25de6961c8544f6449 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 25 Feb 2003 16:48:50 +0000 Subject: [PATCH] don't log erroneous error messages when writing an empty string to a wxTE_RICH2 control git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19313 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/textctrl.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/msw/textctrl.cpp b/src/msw/textctrl.cpp index 77ad90c6d3..4ba1eafe20 100644 --- a/src/msw/textctrl.cpp +++ b/src/msw/textctrl.cpp @@ -657,11 +657,13 @@ bool wxTextCtrl::StreamIn(const wxString& value, m_suppressNextUpdate = TRUE; } - if ( !::SendMessage(GetHwnd(), EM_STREAMIN, - SF_TEXT | - SF_UNICODE | - (selectionOnly ? SFF_SELECTION : 0), - (LPARAM)&eds) || eds.dwError ) + ::SendMessage(GetHwnd(), EM_STREAMIN, + SF_TEXT | + SF_UNICODE | + (selectionOnly ? SFF_SELECTION : 0), + (LPARAM)&eds); + + if ( eds.dwError ) { wxLogLastError(_T("EM_STREAMIN")); }