]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/grid.cpp
Fix wxGrid editors background painting.
[wxWidgets.git] / src / generic / grid.cpp
index ca15ddc2cc325375152514a6aea135c09d2d873e..3a67f6262a482747be4ff56258a6cc2b479401a6 100644 (file)
@@ -5558,7 +5558,7 @@ void wxGrid::DrawCell( wxDC& dc, const wxGridCellCoords& coords )
         // implicitly, causing this out-of order render.
 #if !defined(__WXMAC__)
         wxGridCellEditor *editor = attr->GetEditor(this, row, col);
-        editor->PaintBackground(rect, attr);
+        editor->PaintBackground(dc, rect, *attr);
         editor->DecRef();
 #endif
     }