]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/clipbrd.cpp
don't let MacIsReallyShown climb over toplevel windows, otherwise tlws with invisible...
[wxWidgets.git] / src / mac / carbon / clipbrd.cpp
index 5ef8fdb107219295dbfb439eb0399c7c2f13c67a..91fc234410384e084ad26ce91b56f7f0d7008f5c 100644 (file)
@@ -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;