Don't copy the NULL char into the clipboard. Most Mac apps will

treat it as a legitimate, but invisible character and various problems
arise...


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33952 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2005-05-04 21:04:32 +00:00
parent 60c0dfe53b
commit 0c4f1b2a1e

View File

@@ -251,10 +251,12 @@ bool wxClipboard::AddData( wxDataObject *data )
case wxDF_TEXT:
case wxDF_OEMTEXT:
mactype = kScrapFlavorTypeText ;
sz -= 1;
break ;
#if wxUSE_UNICODE
case wxDF_UNICODETEXT :
mactype = kScrapFlavorTypeUnicode ;
sz -= 2;
break ;
#endif
#if wxUSE_DRAG_AND_DROP