- size_t sz = GetHandleSize( (Handle) M_METAFILEDATA->m_metafile ) ;
- wxMemoryBuffer* membuf = new wxMemoryBuffer( sz ) ;
- void * data = membuf->GetWriteBuf(sz) ;
- memcpy( data , *M_METAFILEDATA->m_metafile , sz ) ;
- membuf->UngetWriteBuf(sz) ;
- CGDataProviderRef provider = CGDataProviderCreateWithData( membuf , data , sz ,
- wxMacMemoryBufferReleaseProc ) ;
- M_METAFILEDATA->m_qdPictRef = NULL ;
- if ( provider != NULL )
+ size_t sz = GetHandleSize( (Handle) M_METAFILEDATA->m_metafile );
+ wxMemoryBuffer* membuf = new wxMemoryBuffer( sz );
+ void *data = membuf->GetWriteBuf( sz );
+
+ memcpy( data, *M_METAFILEDATA->m_metafile, sz );
+ membuf->UngetWriteBuf( sz );
+ CGDataProviderRef provider = CGDataProviderCreateWithData(
+ membuf, data, sz, wxMacMemoryBufferReleaseProc );
+ M_METAFILEDATA->m_qdPictRef = NULL;
+
+ if (provider != NULL)