]> git.saurik.com Git - wxWidgets.git/commitdiff
if we have wxBG_STYLE_PAINT, we must clear the background ourselves, since on OSX...
authorStefan Csomor <csomor@advancedconcepts.ch>
Tue, 20 Apr 2010 05:01:39 +0000 (05:01 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Tue, 20 Apr 2010 05:01:39 +0000 (05:01 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64055 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/splitter.cpp

index e358c875de0a504b41ceb2fe542a3c58f13e5043..f1ba90db396b362d322920dfe38be795c57d38fb 100644 (file)
@@ -194,6 +194,12 @@ void wxSplitterWindow::SetResizeCursor()
 void wxSplitterWindow::OnPaint(wxPaintEvent& WXUNUSED(event))
 {
     wxPaintDC dc(this);
 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);
 }
 
     DrawSash(dc);
 }