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
This commit is contained in:
Václav Slavík 2004-03-25 23:01:38 +00:00
parent 1128a89b82
commit c8fce1a43c

View File

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