From 7fcb33e5f7911aca4540a2d8a4a9834419c34dd6 Mon Sep 17 00:00:00 2001 From: Ryan Norton Date: Mon, 14 Feb 2005 04:18:53 +0000 Subject: [PATCH] warnin - move pict to where it belongs :) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32026 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/mac/carbon/metafile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mac/carbon/metafile.cpp b/src/mac/carbon/metafile.cpp index adb8b49a49..d708fe6c79 100644 --- a/src/mac/carbon/metafile.cpp +++ b/src/mac/carbon/metafile.cpp @@ -166,7 +166,6 @@ bool wxMetaFile::Play(wxDC *dc) return FALSE; { - PicHandle pict = (PicHandle) GetHMETAFILE() ; #if wxMAC_USE_CORE_GRAPHICS QDPictRef cgPictRef = M_METAFILEDATA->m_qdPictRef ; CGContextRef cg = dynamic_cast(dc->GetGraphicContext())->GetNativeContext() ; @@ -178,6 +177,7 @@ bool wxMetaFile::Play(wxDC *dc) QDPictDrawToCGContext( cg , bounds , cgPictRef ) ; CGContextRestoreGState( cg ) ; #else + PicHandle pict = (PicHandle) GetHMETAFILE() ; wxMacPortSetter helper( dc ) ; DrawPicture( pict , &(**pict).picFrame ) ; #endif -- 2.47.2