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:
@@ -657,11 +657,13 @@ bool wxTextCtrl::StreamIn(const wxString& value,
|
|||||||
m_suppressNextUpdate = TRUE;
|
m_suppressNextUpdate = TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( !::SendMessage(GetHwnd(), EM_STREAMIN,
|
::SendMessage(GetHwnd(), EM_STREAMIN,
|
||||||
SF_TEXT |
|
SF_TEXT |
|
||||||
SF_UNICODE |
|
SF_UNICODE |
|
||||||
(selectionOnly ? SFF_SELECTION : 0),
|
(selectionOnly ? SFF_SELECTION : 0),
|
||||||
(LPARAM)&eds) || eds.dwError )
|
(LPARAM)&eds);
|
||||||
|
|
||||||
|
if ( eds.dwError )
|
||||||
{
|
{
|
||||||
wxLogLastError(_T("EM_STREAMIN"));
|
wxLogLastError(_T("EM_STREAMIN"));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user