diff --git a/src/generic/treectlg.cpp b/src/generic/treectlg.cpp index 98f444c25a..e1b20e0fa4 100644 --- a/src/generic/treectlg.cpp +++ b/src/generic/treectlg.cpp @@ -2655,7 +2655,7 @@ void wxGenericTreeCtrl::PaintItem(wxGenericTreeItem *item, wxDC& dc) dc, item->GetX(), item->GetY() + - total_h > state_h ? (total_h-state_h)/2 : 0); + (total_h > state_h ? (total_h-state_h)/2 : 0)); } if ( image != NO_IMAGE ) @@ -2666,7 +2666,7 @@ void wxGenericTreeCtrl::PaintItem(wxGenericTreeItem *item, wxDC& dc) dc, item->GetX() + state_w, item->GetY() + - total_h > image_h ? (total_h-image_h)/2 : 0); + (total_h > image_h ? (total_h-image_h)/2 : 0)); } dc.SetBackgroundMode(wxBRUSHSTYLE_TRANSPARENT);