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:
parent
1128a89b82
commit
c8fce1a43c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user