From 8b6d01c79811a6b991e9da9ceb704cacdc10182e Mon Sep 17 00:00:00 2001 From: Ilya Sinitsyn Date: Fri, 14 Aug 2020 20:41:47 +0700 Subject: [PATCH] Fix grid demo stars drawing to use correct colours and font Just add a call to SetTextColoursAndFont() now that it is present in this renderer base class (see the parent commit) to ensure that the correct, i.e. corresponding to the column attribute, colour is used for the stars. --- samples/grid/griddemo.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/samples/grid/griddemo.cpp b/samples/grid/griddemo.cpp index 7218e1c202..aa78218393 100644 --- a/samples/grid/griddemo.cpp +++ b/samples/grid/griddemo.cpp @@ -162,6 +162,8 @@ public: { wxGridCellRenderer::Draw(grid, attr, dc, rect, row, col, isSelected); + SetTextColoursAndFont(grid, attr, dc, isSelected); + grid.DrawTextRectangle(dc, GetStarString(GetStarValue(grid, row, col)), rect, attr); }