X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0eaa1d68c29cd273971be9d60008045e470c2d46..bcd3d8d9e26e41615d26d457ba0e2b84b80a0356:/src/mac/metafile.cpp?ds=sidebyside 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 ; }