X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a8e9860d9fa86d3cf354b0b05739da379d3e9ae1..5f7348ce627157e21bec507623ebd31c1e9dc762:/src/mac/carbon/clipbrd.cpp diff --git a/src/mac/carbon/clipbrd.cpp b/src/mac/carbon/clipbrd.cpp index be0973dd38..4267942472 100644 --- a/src/mac/carbon/clipbrd.cpp +++ b/src/mac/carbon/clipbrd.cpp @@ -15,6 +15,8 @@ #include "wx/wxprec.h" +#if wxUSE_CLIPBOARD + #include "wx/app.h" #include "wx/frame.h" #include "wx/bitmap.h" @@ -249,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 @@ -401,3 +405,5 @@ bool wxClipboard::GetData( wxDataObject& data ) delete[] array ; return transferred ; } + +#endif