]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/clipbrd.cpp
removed conditional for Apple DevTools now that mac headers are not included
[wxWidgets.git] / src / mac / clipbrd.cpp
index 2f7651852aa227aeb73b69186208187d936fceca..8e3cd7767860f1dab040867738c5980df709b09b 100644 (file)
@@ -22,6 +22,8 @@
 #include "wx/clipbrd.h"
 #include "wx/intl.h"
 
+#include "wx/mac/private.h"
+
 #define wxUSE_DATAOBJ 1
 
 #include <string.h>
@@ -254,7 +256,7 @@ bool wxClipboard::AddData( wxDataObject *data )
               wxMetafileDataObject* metaFileDataObject =
                 (wxMetafileDataObject*) data;
               wxMetafile metaFile = metaFileDataObject->GetMetafile();
-                               PicHandle pict = metaFile->GetHMETAFILE() ;
+                               PicHandle pict = (PicHandle) metaFile.GetHMETAFILE() ;
                                HLock( (Handle) pict ) ;
       #if !TARGET_CARBON
                                err = PutScrap( GetHandleSize(  (Handle) pict ) , 'PICT' , *pict ) ;