Revert my old hack for a dataformat issue on OSX, it caused more troubles than it fixes.
This commit is contained in:
@@ -458,13 +458,11 @@ bool wxDataObject::GetFromPasteboard( void * pb )
|
|||||||
pastelocationset = true;
|
pastelocationset = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#if 0 // See https://groups.google.com/forum/#!topic/wx-dev/wFxevpvbhvQ/discussion
|
|
||||||
else if ( flavorFormat.GetType() != wxDF_PRIVATE )
|
else if ( flavorFormat.GetType() != wxDF_PRIVATE )
|
||||||
{
|
{
|
||||||
// indicate the expected format for the type, benefiting from native conversions eg utf8 -> utf16
|
// indicate the expected format for the type, benefiting from native conversions eg utf8 -> utf16
|
||||||
flavorType = (CFStringRef) wxDataFormat( flavorFormat.GetType()).GetFormatId();
|
flavorType = (CFStringRef) wxDataFormat( flavorFormat.GetType()).GetFormatId();
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
err = PasteboardCopyItemFlavorData( pasteboard, itemID, flavorType , &flavorData );
|
err = PasteboardCopyItemFlavorData( pasteboard, itemID, flavorType , &flavorData );
|
||||||
if ( err == noErr )
|
if ( err == noErr )
|
||||||
|
Reference in New Issue
Block a user