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
This commit is contained in:
parent
4756503a3d
commit
07601f5945
@ -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"));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user