SetItemFont correction
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@62193 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1233,6 +1233,7 @@ void wxGenericTreeCtrl::SetItemFont(const wxTreeItemId& item, const wxFont& font
|
|||||||
wxCHECK_RET( item.IsOk(), wxT("invalid tree item") );
|
wxCHECK_RET( item.IsOk(), wxT("invalid tree item") );
|
||||||
|
|
||||||
wxGenericTreeItem *pItem = (wxGenericTreeItem*) item.m_pItem;
|
wxGenericTreeItem *pItem = (wxGenericTreeItem*) item.m_pItem;
|
||||||
|
pItem->Attr().SetFont(font);
|
||||||
pItem->ResetTextSize();
|
pItem->ResetTextSize();
|
||||||
pItem->CalculateSize(this);
|
pItem->CalculateSize(this);
|
||||||
RefreshLine(pItem);
|
RefreshLine(pItem);
|
||||||
@@ -3564,10 +3565,9 @@ void wxGenericTreeCtrl::OnInternalIdle()
|
|||||||
DoDirtyProcessing();
|
DoDirtyProcessing();
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxGenericTreeCtrl::CalculateSize( wxGenericTreeItem *item, wxDC &dc )
|
void wxGenericTreeCtrl::CalculateSize( wxGenericTreeItem *WXUNUSED(item), wxDC &WXUNUSED(dc) )
|
||||||
{
|
{
|
||||||
// Should not be called anymore
|
// Should not be called anymore, keeping for ABI compatibility.
|
||||||
// Does this function need to stay for ABI compatibility?
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------
|
||||||
|
Reference in New Issue
Block a user