From 70ff062252ca69617fd227472a6492720dc19cfd Mon Sep 17 00:00:00 2001 From: Eran Ifrah Date: Mon, 18 Apr 2022 08:09:00 +0300 Subject: [PATCH] Fixed: small regression: TreeCtrl: allow per cell / row font --- Plugin/clRowEntry.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Plugin/clRowEntry.cpp b/Plugin/clRowEntry.cpp index 8e14a4d47a..509fbefaa3 100644 --- a/Plugin/clRowEntry.cpp +++ b/Plugin/clRowEntry.cpp @@ -461,9 +461,10 @@ void clRowEntry::Render(wxWindow* win, wxDC& dc, const clColours& c, int row_ind colours = c; // reset the colours clCellValue& cell = GetColumn(i); wxFont f = m_tree->GetDefaultFont(); - // if(cell.GetFont().IsOk()) { - // f = cell.GetFont(); - // } + if(cell.GetFont().IsOk()) { + f = cell.GetFont(); + } + if(cell.GetTextColour().IsOk()) { colours.SetItemTextColour(cell.GetTextColour()); }