git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42943
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
else
bmp = m_disabled_close_bmp;
else
bmp = m_disabled_close_bmp;
- wxRect rect(tab_x + tab_width - close_button_width - 1, tab_y + 1,
- close_button_width, tab_height - 1);
+ wxRect rect(tab_x + tab_width - close_button_width - 1,
+ tab_y + (tab_height/2) - (bmp.GetHeight()/2) + 1,
+ close_button_width,
+ tab_height - 1);
DrawButtonS(*dc, rect, bmp, *wxWHITE, close_button_state);
*out_button_rect = rect;
DrawButtonS(*dc, rect, bmp, *wxWHITE, close_button_state);
*out_button_rect = rect;