From d701d432df49b628f79dff9bd10d15fea828e986 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Karsten=20Ball=C3=BCder?= Date: Fri, 9 Apr 1999 09:54:03 +0000 Subject: [PATCH] better centering of text/images git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2078 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/treectrl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/generic/treectrl.cpp b/src/generic/treectrl.cpp index a367847fdb..432d44d87b 100644 --- a/src/generic/treectrl.cpp +++ b/src/generic/treectrl.cpp @@ -1117,7 +1117,7 @@ void wxTreeCtrl::PaintItem(wxGenericTreeItem *item, wxDC& dc) dc.SetClippingRegion( item->GetX(), item->GetY(), image_w-2, total_h ); m_imageListNormal->Draw( item->GetSelectedImage(), dc, item->GetX(), - item->GetY()/* +((total_h > image_h)?((total_h-image_h)/2):0)*/, + item->GetY() +((total_h > image_h)?((total_h-image_h)/2):0), wxIMAGELIST_DRAW_TRANSPARENT ); dc.DestroyClippingRegion(); } @@ -1126,7 +1126,7 @@ void wxTreeCtrl::PaintItem(wxGenericTreeItem *item, wxDC& dc) dc.SetClippingRegion( item->GetX(), item->GetY(), image_w-2, total_h ); m_imageListNormal->Draw( item->GetImage(), dc, item->GetX(), - item->GetY() /*+((total_h > image_h)?((total_h-image_h)/2):0)*/, + item->GetY() +((total_h > image_h)?((total_h-image_h)/2):0), wxIMAGELIST_DRAW_TRANSPARENT ); dc.DestroyClippingRegion(); } -- 2.50.0