]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/splitter.cpp
Only use wxFORCE_LINK_MODULE() in mediaplayer sample in static build.
[wxWidgets.git] / 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);
+#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);
 }