From c8fce1a43c78a54eefcbe4fad2048d3f6ee09855 Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Thu, 25 Mar 2004 23:01:38 +0000 Subject: [PATCH] fixed tree item size calculation (patch 922454, partially) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26342 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/treectlg.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/generic/treectlg.cpp b/src/generic/treectlg.cpp index 4767c02c68..01cd41e868 100644 --- a/src/generic/treectlg.cpp +++ b/src/generic/treectlg.cpp @@ -3211,6 +3211,8 @@ void wxGenericTreeCtrl::CalculateSize( wxGenericTreeItem *item, wxDC &dc ) dc.SetFont(attr->GetFont()); else if ( item->IsBold() ) dc.SetFont(m_boldFont); + else + dc.SetFont(m_normalFont); dc.GetTextExtent( item->GetText(), &text_w, &text_h ); text_h+=2; -- 2.50.0