diff --git a/src/msw/textctrl.cpp b/src/msw/textctrl.cpp index a04437dc77..aeba2610d9 100644 --- a/src/msw/textctrl.cpp +++ b/src/msw/textctrl.cpp @@ -895,6 +895,9 @@ void wxTextCtrl::WriteText(const wxString& value) void wxTextCtrl::DoWriteText(const wxString& value, bool selectionOnly) { + if ( value.empty() ) + return; + wxString valueDos; if ( m_windowStyle & wxTE_MULTILINE ) valueDos = wxTextFile::Translate(value, wxTextFileType_Dos);