From 4f6b29fb0c781c3bf0a2d26d2c401b1fdfd309b1 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 22 Nov 2019 01:30:32 +0100 Subject: [PATCH] Remove "X" suffix from GRID_CELL_CHECKBOX_MARGIN_X The same margin will be used in the vertical direction too. --- src/generic/grid.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/generic/grid.cpp b/src/generic/grid.cpp index bae0b7d7b5..b8ba71be7b 100644 --- a/src/generic/grid.cpp +++ b/src/generic/grid.cpp @@ -112,7 +112,7 @@ const int GRID_HASH_SIZE = 100; const int DRAG_SENSITIVITY = 3; // the space between the cell edge and the checkbox mark -const int GRID_CELL_CHECKBOX_MARGIN_X = 2; +const int GRID_CELL_CHECKBOX_MARGIN = 2; } // anonymous namespace @@ -10366,11 +10366,11 @@ wxRect wxGetGridCheckBoxRect(wxWindow* win, else if ( hAlign & wxALIGN_RIGHT ) { checkBoxRect.SetX(cellRect.x + cellRect.width - - checkBoxSize.x - GRID_CELL_CHECKBOX_MARGIN_X); + - checkBoxSize.x - GRID_CELL_CHECKBOX_MARGIN); } else // ( hAlign == wxALIGN_LEFT ) and invalid alignment value { - checkBoxRect.SetX(cellRect.x + GRID_CELL_CHECKBOX_MARGIN_X); + checkBoxRect.SetX(cellRect.x + GRID_CELL_CHECKBOX_MARGIN); } return checkBoxRect;