X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/544bdbbee2c81c8ab3a69e100bbd441b6461d609..914955aaa034862c3b9b827463cde26455d06c79:/src/mac/carbon/dataobj.cpp diff --git a/src/mac/carbon/dataobj.cpp b/src/mac/carbon/dataobj.cpp index 33e738e0b9..65401b5f33 100644 --- a/src/mac/carbon/dataobj.cpp +++ b/src/mac/carbon/dataobj.cpp @@ -24,6 +24,8 @@ // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" +#if wxUSE_DATAOBJ + #ifndef WX_PRECOMP #include "wx/intl.h" #endif @@ -252,8 +254,8 @@ wxBitmapDataObject::wxBitmapDataObject( Init(); if ( m_bitmap.Ok() ) { - m_pictHandle = wxMacCreatePicHandle( rBitmap ) ; - m_pictCreated = true ; + m_pictHandle = m_bitmap.GetBitmapData()->GetPictHandle() ; + m_pictCreated = false ; } } @@ -270,8 +272,8 @@ void wxBitmapDataObject::SetBitmap( wxBitmapDataObjectBase::SetBitmap(rBitmap); if ( m_bitmap.Ok() ) { - m_pictHandle = wxMacCreatePicHandle( rBitmap ) ; - m_pictCreated = true ; + m_pictHandle = m_bitmap.GetBitmapData()->GetPictHandle() ; + m_pictCreated = false ; } } @@ -331,3 +333,5 @@ bool wxBitmapDataObject::SetData( return m_bitmap.Ok(); } + +#endif \ No newline at end of file