fix for assert failure when first paint event occurs before first idle event, #10085

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56474 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Paul Cornett
2008-10-20 16:50:20 +00:00
parent e3c80a1dd9
commit e253521dda

View File

@@ -2461,6 +2461,7 @@ int wxGenericTreeCtrl::GetLineHeight(wxGenericTreeItem *item) const
void wxGenericTreeCtrl::PaintItem(wxGenericTreeItem *item, wxDC& dc)
{
item->SetFont(this, dc);
item->CalculateSize(this, dc);
wxCoord text_h = item->GetTextHeight();