Refactor: Use dedicated methods to manipulate wxRect members.

This commit is contained in:
Artur Wieczorek
2015-07-07 21:51:30 +02:00
parent 6a435345f5
commit 7d77168936
3 changed files with 4 additions and 6 deletions

View File

@@ -1929,7 +1929,7 @@ void wxPropertyGrid::DrawExpanderButton( wxDC& dc, const wxRect& rect,
{
// Prepare rectangle to be used
wxRect r(rect);
r.x += m_gutterWidth; r.y += m_buttonSpacingY;
r.Offset(m_gutterWidth, m_buttonSpacingY);
r.width = m_iconWidth; r.height = m_iconHeight;
#if (wxPG_USE_RENDERER_NATIVE)