X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/939fba6c17da245488a77a3f58e983180fc5de91..79a73b4f86090278c242a8cca5fd9147a31a4419:/src/mac/carbon/clipbrd.cpp diff --git a/src/mac/carbon/clipbrd.cpp b/src/mac/carbon/clipbrd.cpp index 5ef8fdb107..91fc234410 100644 --- a/src/mac/carbon/clipbrd.cpp +++ b/src/mac/carbon/clipbrd.cpp @@ -138,12 +138,7 @@ void *wxGetClipboardData(wxDataFormat dataFormat, long *len) if ( dataFormat.GetType() == wxDF_TEXT ) { - char * buf = (char*) data ; - while( (buf=strchr(buf,0x0a)) != NULL ) - { - *buf = 13 ; - buf++ ; - } + wxMacConvertNewlines10To13( (char*) data ) ; } return data;