// ownership is transferred to the bitmap
m_pictCreated = false;
- Rect frame = (**picHandle).picFrame;
+ Rect frame ;
+ wxMacGetPictureBounds( picHandle , &frame ) ;
wxMetafile mf;
mf.SetHMETAFILE( (WXHMETAFILE)m_pictHandle );
#else
PicHandle pict = (PicHandle) GetHMETAFILE();
wxMacPortSetter helper( dc );
- DrawPicture( pict , &(**pict).picFrame );
+ Rect picFrame ;
+ DrawPicture( pict , wxMacGetPictureBounds( pict , &picFrame ) );
#endif
}
if ( Ok() )
{
PicHandle pict = (PicHandle) GetHMETAFILE() ;
- Rect &r = (**pict).picFrame ;
+ Rect r ;
+ wxMacGetPictureBounds( pict , &r ) ;
size.x = r.right - r.left ;
size.y = r.bottom - r.top ;
}