From 0c4f1b2a1e1d50773feea21b46f933883bad728c Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Wed, 4 May 2005 21:04:32 +0000 Subject: [PATCH] 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 --- src/mac/carbon/clipbrd.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mac/carbon/clipbrd.cpp b/src/mac/carbon/clipbrd.cpp index cda81e29bb..4267942472 100644 --- a/src/mac/carbon/clipbrd.cpp +++ b/src/mac/carbon/clipbrd.cpp @@ -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 -- 2.45.2