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.
This commit is contained in:
Ilya Sinitsyn
2020-08-14 20:41:47 +07:00
committed by Vadim Zeitlin
parent 317ad65079
commit 8b6d01c798

View File

@@ -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);
}