From 278d98b2b673d778eb6077e7f030e99415a01a57 Mon Sep 17 00:00:00 2001 From: Ian McInerney Date: Thu, 23 Jan 2020 23:21:08 +0000 Subject: [PATCH] OSX: Draw background in wxGrid cell when editor is open This was removed when Quick Draw was in use due to an issue, but Quick Draw has been removed, so re-enable it. --- src/generic/grid.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/generic/grid.cpp b/src/generic/grid.cpp index c1dbb96548..267b30cb39 100644 --- a/src/generic/grid.cpp +++ b/src/generic/grid.cpp @@ -6106,15 +6106,9 @@ void wxGrid::DrawCell( wxDC& dc, const wxGridCellCoords& coords ) // Note: However, only if it is really _shown_, i.e. not hidden! if ( isCurrent && IsCellEditControlShown() ) { - // NB: this "#if..." is temporary and fixes a problem where the - // edit control is erased by this code after being rendered. - // On wxMac (QD build only), the cell editor is a wxTextCntl and is rendered - // implicitly, causing this out-of order render. -#if !defined(__WXMAC__) wxGridCellEditor *editor = attr->GetEditor(this, row, col); editor->PaintBackground(dc, rect, *attr); editor->DecRef(); -#endif } else {