From: Benjamin Williams Date: Tue, 7 Nov 2006 15:48:06 +0000 (+0000) Subject: prevent sash artifacts on gtk X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/8e367bbf44f81001904cf817ff917723e833c3c5?hp=50d5ad7d77681d4e6e9a7cc5d459ea6896459d78 prevent sash artifacts on gtk git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43165 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/aui/dockart.cpp b/src/aui/dockart.cpp index 248f63b8a5..b4e6f63c2a 100644 --- a/src/aui/dockart.cpp +++ b/src/aui/dockart.cpp @@ -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 )