]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/treectlg.cpp
don't take EVT_HEADER_END_DRAG into account if it indicates the the drag was cancelled
[wxWidgets.git] / src / generic / treectlg.cpp
index 391a1d635de71c8f5f7fd38b88defe01d669dcb4..52868f92265551d5f81a472282f5e1f6bb7bf4fc 100644 (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();