X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/939fba6c17da245488a77a3f58e983180fc5de91..b77b87881bae2e6306366d79e7fe160334b3d4a2:/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;