]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/metafile.cpp
fix for non-quartz branch
[wxWidgets.git] / src / mac / carbon / metafile.cpp
index 5367d10d040b4eb8c45224307827c1ae2401f0ee..04c45ae760ccc944be706035c5598dc638357654 100644 (file)
@@ -168,7 +168,7 @@ bool wxMetaFile::Play(wxDC *dc)
     {
 #if wxMAC_USE_CORE_GRAPHICS
         QDPictRef cgPictRef = M_METAFILEDATA->m_qdPictRef ;
-        CGContextRef cg = (wxMacCGContext*)(dc->GetGraphicContext())->GetNativeContext() ;
+        CGContextRef cg = ((wxMacCGContext*)(dc->GetGraphicContext()))->GetNativeContext() ;
         CGRect bounds = QDPictGetBounds( cgPictRef ) ;
 
         CGContextSaveGState(cg);