summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
788519c)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14338
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
wxCoord text_w = 0;
wxCoord text_h = 0;
wxCoord text_w = 0;
wxCoord text_h = 0;
+ wxTreeItemAttr *attr = item->GetAttributes();
+ if ( attr && attr->HasFont() )
+ dc.SetFont(attr->GetFont());
+ else if ( item->IsBold() )
dc.SetFont(m_boldFont);
dc.GetTextExtent( item->GetText(), &text_w, &text_h );
dc.SetFont(m_boldFont);
dc.GetTextExtent( item->GetText(), &text_w, &text_h );