From: Vadim Zeitlin Date: Mon, 25 Feb 2008 02:23:45 +0000 (+0000) Subject: check for wxDF_UNICODETEXT and not only wxDF_TEXT in CanPaste(), this is necessary... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/fa9cd5d3616d2ef2298c1ad1be736808dad15555 check for wxDF_UNICODETEXT and not only wxDF_TEXT in CanPaste(), this is necessary under WinCE (patch 1891003) and shouldn't hurt elsewhere git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52076 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/textentrycmn.cpp b/src/common/textentrycmn.cpp index 7324f6194c..61d80ffbaa 100644 --- a/src/common/textentrycmn.cpp +++ b/src/common/textentrycmn.cpp @@ -104,8 +104,14 @@ bool wxTextEntryBase::CanPaste() const { #if wxUSE_CLIPBOARD // check if there is any text on the clipboard - if ( wxTheClipboard->IsSupported(wxDF_TEXT) ) + if ( wxTheClipboard->IsSupported(wxDF_TEXT) +#if wxUSE_UNICODE + || wxTheClipboard->IsSupported(wxDF_UNICODETEXT) +#endif // wxUSE_UNICODE + ) + { return true; + } #endif // wxUSE_CLIPBOARD }