]> git.saurik.com Git - wxWidgets.git/commitdiff
prevent sash artifacts on gtk
authorBenjamin Williams <bwilliams@kirix.com>
Tue, 7 Nov 2006 15:48:06 +0000 (15:48 +0000)
committerBenjamin Williams <bwilliams@kirix.com>
Tue, 7 Nov 2006 15:48:06 +0000 (15:48 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43165 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/aui/dockart.cpp

index 248f63b8a5a8c96e0c5446c1025d136c326626fe..b4e6f63c2a567153be701e21ec1f2efab726f3aa 100644 (file)
@@ -385,6 +385,10 @@ void wxAuiDefaultDockArt::DrawSash(wxDC& dc, wxWindow *window, int orientation,
 #endif
 
 #elif defined(__WXGTK__)
+    // clear out the rectangle first
+    dc.SetPen(*wxTRANSPARENT_PEN);
+    dc.SetBrush(m_sash_brush);
+    dc.DrawRectangle(rect.x, rect.y, rect.width, rect.height);
 
     GdkRectangle gdk_rect;
     if (orientation == wxVERTICAL )