From f4b53f71289f85b81500bc450e59e4f6fb8556e1 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Tue, 29 Sep 2009 06:36:05 +0000 Subject: [PATCH] SetItemFont correction git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@62193 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/treectlg.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/generic/treectlg.cpp b/src/generic/treectlg.cpp index 36d4cb46f3..2d0a2a3211 100644 --- a/src/generic/treectlg.cpp +++ b/src/generic/treectlg.cpp @@ -1233,6 +1233,7 @@ void wxGenericTreeCtrl::SetItemFont(const wxTreeItemId& item, const wxFont& font wxCHECK_RET( item.IsOk(), wxT("invalid tree item") ); wxGenericTreeItem *pItem = (wxGenericTreeItem*) item.m_pItem; + pItem->Attr().SetFont(font); pItem->ResetTextSize(); pItem->CalculateSize(this); RefreshLine(pItem); @@ -3564,10 +3565,9 @@ void wxGenericTreeCtrl::OnInternalIdle() DoDirtyProcessing(); } -void wxGenericTreeCtrl::CalculateSize( wxGenericTreeItem *item, wxDC &dc ) +void wxGenericTreeCtrl::CalculateSize( wxGenericTreeItem *WXUNUSED(item), wxDC &WXUNUSED(dc) ) { - // Should not be called anymore - // Does this function need to stay for ABI compatibility? + // Should not be called anymore, keeping for ABI compatibility. } // -----------------------------------------------------------------------------