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:
@@ -3211,6 +3211,8 @@ void wxGenericTreeCtrl::CalculateSize( wxGenericTreeItem *item, wxDC &dc )
|
|||||||
dc.SetFont(attr->GetFont());
|
dc.SetFont(attr->GetFont());
|
||||||
else if ( item->IsBold() )
|
else if ( item->IsBold() )
|
||||||
dc.SetFont(m_boldFont);
|
dc.SetFont(m_boldFont);
|
||||||
|
else
|
||||||
|
dc.SetFont(m_normalFont);
|
||||||
|
|
||||||
dc.GetTextExtent( item->GetText(), &text_w, &text_h );
|
dc.GetTextExtent( item->GetText(), &text_w, &text_h );
|
||||||
text_h+=2;
|
text_h+=2;
|
||||||
|
Reference in New Issue
Block a user