From: Vadim Zeitlin Date: Tue, 6 Nov 2012 16:25:18 +0000 (+0000) Subject: Remove __WXMSW__ check around background erasing in generic wxDataViewCtrl. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/31f2c38d11c1dcad7ca015be8d87f37b5c6042ce Remove __WXMSW__ check around background erasing in generic wxDataViewCtrl. The background was erased only under MSW for some reason, do it everywhere now. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72904 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/generic/datavgen.cpp b/src/generic/datavgen.cpp index 18602bcbe2..fb5c0a1159 100644 --- a/src/generic/datavgen.cpp +++ b/src/generic/datavgen.cpp @@ -1695,11 +1695,9 @@ void wxDataViewMainWindow::OnPaint( wxPaintEvent &WXUNUSED(event) ) wxDataViewModel *model = GetModel(); wxAutoBufferedPaintDC dc( this ); -#ifdef __WXMSW__ dc.SetBrush(GetOwner()->GetBackgroundColour()); dc.SetPen( *wxTRANSPARENT_PEN ); dc.DrawRectangle(GetClientSize()); -#endif if ( IsEmpty() ) {