From: Stefan Csomor Date: Tue, 20 Apr 2010 05:01:39 +0000 (+0000) Subject: if we have wxBG_STYLE_PAINT, we must clear the background ourselves, since on OSX... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/4766d85b113811f4d5534aceb5ba87478e981e04?ds=sidebyside if we have wxBG_STYLE_PAINT, we must clear the background ourselves, since on OSX there might be transparent subpanels, fixes #11958 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64055 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/generic/splitter.cpp b/src/generic/splitter.cpp index e358c875de..f1ba90db39 100644 --- a/src/generic/splitter.cpp +++ b/src/generic/splitter.cpp @@ -194,6 +194,12 @@ void wxSplitterWindow::SetResizeCursor() void wxSplitterWindow::OnPaint(wxPaintEvent& WXUNUSED(event)) { wxPaintDC dc(this); +#ifdef __WXOSX__ + // as subpanels might have a transparent background we must erase the background + // at least on OSX, otherwise traces of the sash will remain + // test with: splitter sample->replace right window + dc.Clear(); +#endif DrawSash(dc); }