X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dd5ab30d6a896e961a42fbfabd42c6415a1f388a..19be42b7609c1689b846542ab0307f045686380c:/src/gtk/utilsgtk.cpp diff --git a/src/gtk/utilsgtk.cpp b/src/gtk/utilsgtk.cpp index 8e36cc40b7..93b8f02790 100644 --- a/src/gtk/utilsgtk.cpp +++ b/src/gtk/utilsgtk.cpp @@ -116,12 +116,6 @@ wxWindow* wxFindWindowAtPoint(const wxPoint& pt) WXDLLIMPEXP_CORE wxCharBuffer wxConvertToGTK(const wxString& s, wxFontEncoding enc) { - // Passing an empty string to cMB2WC() returns an invalid buffer, i.e. a - // buffer whose data is NULL and this can result in passing NULL to a GTK+ - // function and a crash, so handle this case specially to avoid this. - if ( s.empty() ) - return wxCharBuffer(""); - wxWCharBuffer wbuf; if ( enc == wxFONTENCODING_SYSTEM || enc == wxFONTENCODING_DEFAULT ) {