if ( dataFormat.GetType() == wxDF_TEXT )
{
- char * buf = (char*) data ;
- while( (buf=strchr(buf,0x0a)) != NULL )
- {
- *buf = 13 ;
- buf++ ;
- }
+ wxMacConvertNewlines10To13( (char*) data ) ;
}
return data;
void wxClipboard::Close()
{
m_open = false ;
+
+ // Get rid of cached object. If this is not done copying from another application will
+ // only work once
+ if (m_data)
+ {
+ delete m_data;
+ m_data = (wxDataObject*) NULL;
+ }
+
}
bool wxClipboard::IsSupported( const wxDataFormat &dataFormat )