diff --git a/src/generic/splitter.cpp b/src/generic/splitter.cpp index 11ab7e9734..8f21f6cb0b 100644 --- a/src/generic/splitter.cpp +++ b/src/generic/splitter.cpp @@ -96,6 +96,10 @@ bool wxSplitterWindow::Create(wxWindow *parent, wxWindowID id, m_permitUnsplitAlways = (style & wxSP_PERMIT_UNSPLIT) != 0; + // don't erase the splitter background, it's pointless as we overwrite it + // anyhow + SetBackgroundStyle(wxBG_STYLE_CUSTOM); + return true; }