X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0eaa1d68c29cd273971be9d60008045e470c2d46..fa1c12bdd76acc21ddb45b90bb53b2f58aed946d:/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 ; }