From bd8c74f368a76d75605d450d2608ad8283f31c69 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 2 Nov 2020 00:55:47 +0100 Subject: [PATCH] Fix positioning of bottom-aligned checkboxes in wxGrid This fixes a bug due to a typo in ab02d36e10 (Account for vertical alignment in wxGetGridCheckBoxRect() too, 2019-11-22) which used the vertical component of a wrong object and so didn't actually offset the checkbox by its size from the bottom of the cell rectangle, as it should have done. Closes #18907. --- src/generic/grid.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/generic/grid.cpp b/src/generic/grid.cpp index edffab4e97..2e9f4bdc5e 100644 --- a/src/generic/grid.cpp +++ b/src/generic/grid.cpp @@ -11240,7 +11240,7 @@ wxGetContentRect(wxSize contentSize, else if ( vAlign & wxALIGN_BOTTOM ) { contentRect.SetY(cellRect.y + cellRect.height - - contentRect.y - GRID_CELL_CHECKBOX_MARGIN); + - contentSize.y - GRID_CELL_CHECKBOX_MARGIN); } else // wxALIGN_TOP {