diff --git a/src/aui/dockart.cpp b/src/aui/dockart.cpp index 82f0d04aac..bbdc44a924 100644 --- a/src/aui/dockart.cpp +++ b/src/aui/dockart.cpp @@ -425,6 +425,16 @@ void wxAuiDefaultDockArt::DrawSash(wxDC& dc, wxWindow *window, int orientation, QDBeginCGContext( (CGrafPtr) dc.m_macPort , &cgContext ) ; CGContextTranslateCTM( cgContext , 0 , bounds.bottom - bounds.top ) ; CGContextScaleCTM( cgContext , 1 , -1 ) ; + + if ( window ) + { + wxPoint origin = window->GetClientAreaOrigin(); + int x, y; + x = origin.x; + y = origin.y; + window->MacWindowToRootWindow( &x , &y ); + CGContextTranslateCTM( cgContext, x, y); + } #endif HIThemeSplitterDrawInfo drawInfo ;