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:
Stefan Csomor
2006-04-08 15:26:05 +00:00
parent 429bf2309b
commit 3271d7376a

View File

@@ -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