X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0eaa1d68c29cd273971be9d60008045e470c2d46..49a91764b57168d9f441578001b3206a7330ee70:/src/mac/metafile.cpp diff --git a/src/mac/metafile.cpp b/src/mac/metafile.cpp index 6a0a3a9eab..9d3d1576b7 100644 --- a/src/mac/metafile.cpp +++ b/src/mac/metafile.cpp @@ -83,19 +83,21 @@ wxMetaFile::~wxMetaFile() bool wxMetaFile::SetClipboard(int width, int height) { +#if wxUSE_DRAG_AND_DROP +//TODO finishi this port , we need the data obj first if (!m_refData) return FALSE; - bool alreadyOpen=wxClipboardOpen(); + bool alreadyOpen=wxTheClipboard->IsOpened() ; if (!alreadyOpen) { - wxOpenClipboard(); - if (!wxEmptyClipboard()) return FALSE; + wxTheClipboard->Open(); + if (!wxTheClipboard->Clear()) return FALSE; } bool success = wxSetClipboardData(wxDF_METAFILE, this, width,height); if (!alreadyOpen) wxCloseClipboard(); return (bool) success; - +#endif return TRUE ; }