diff --git a/src/aui/dockart.cpp b/src/aui/dockart.cpp index f26a5bbaf1..08b07969b9 100644 --- a/src/aui/dockart.cpp +++ b/src/aui/dockart.cpp @@ -312,7 +312,7 @@ void wxDefaultDockArt::DrawSash(wxDC& dc, wxWindow *window, int orientation, con HIRect splitterRect = CGRectMake( rect.x , rect.y , rect.width , rect.height ); CGContextRef cgContext ; #if wxMAC_USE_CORE_GRAPHICS - cgContext = ((wxMacCGContext*)(dc.GetGraphicContext()))->GetNativeContext() ; + cgContext = (CGContextRef) dc.GetGraphicContext()->GetNativeContext() ; #else Rect bounds ; GetPortBounds( (CGrafPtr) dc.m_macPort , &bounds ) ;