fixing Clipboard::IsSupported when asking for unicode text and only non-unicode text is available
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38625 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -329,6 +329,16 @@ bool wxClipboard::IsSupported( const wxDataFormat &dataFormat )
|
||||
if (err == noErr)
|
||||
hasData = true;
|
||||
}
|
||||
else if ( dataFormat.GetType() == wxDF_UNICODETEXT )
|
||||
{
|
||||
err = GetScrapFlavorFlags( scrapRef, 'TEXT', &flavorFlags );
|
||||
if (err == noErr)
|
||||
{
|
||||
err = GetScrapFlavorSize( scrapRef, 'TEXT', &byteCount );
|
||||
if (err == noErr)
|
||||
hasData = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#else
|
||||
|
Reference in New Issue
Block a user