]> git.saurik.com Git - wxWidgets.git/commitdiff
Remove __WXMSW__ check around background erasing in generic wxDataViewCtrl.
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 6 Nov 2012 16:25:18 +0000 (16:25 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 6 Nov 2012 16:25:18 +0000 (16:25 +0000)
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

src/generic/datavgen.cpp

index 18602bcbe2f61c4f5cb04eb6f5759d4a3baff281..fb5c0a1159fac6843ba64004fa010fe13cfcdab2 100644 (file)
@@ -1695,11 +1695,9 @@ void wxDataViewMainWindow::OnPaint( wxPaintEvent &WXUNUSED(event) )
     wxDataViewModel *model = GetModel();
     wxAutoBufferedPaintDC dc( this );
 
     wxDataViewModel *model = GetModel();
     wxAutoBufferedPaintDC dc( this );
 
-#ifdef __WXMSW__
     dc.SetBrush(GetOwner()->GetBackgroundColour());
     dc.SetPen( *wxTRANSPARENT_PEN );
     dc.DrawRectangle(GetClientSize());
     dc.SetBrush(GetOwner()->GetBackgroundColour());
     dc.SetPen( *wxTRANSPARENT_PEN );
     dc.DrawRectangle(GetClientSize());
-#endif
 
     if ( IsEmpty() )
     {
 
     if ( IsEmpty() )
     {