From: Václav Slavík Date: Thu, 25 Mar 2004 23:01:38 +0000 (+0000) Subject: fixed tree item size calculation (patch 922454, partially) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/c8fce1a43c78a54eefcbe4fad2048d3f6ee09855?ds=inline 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 --- 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;