From 3555dbc4b7157f9b522617de78c84f2e28e70f45 Mon Sep 17 00:00:00 2001 From: "B. Stack" Date: Tue, 17 Aug 2021 19:22:37 -0400 Subject: add upstream 11.13 --- wx+/grid.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'wx+/grid.cpp') diff --git a/wx+/grid.cpp b/wx+/grid.cpp index 80e9d1d6..a32de84e 100644 --- a/wx+/grid.cpp +++ b/wx+/grid.cpp @@ -1761,7 +1761,7 @@ void Grid::onKeyDown(wxKeyEvent& event) const size_t row = std::min(mainWin_->getCursor(), getRowCount()); const int clientPosMainWinY = std::clamp(CalcScrolledPosition(wxPoint(0, rowLabelWin_->getRowHeight() * (row + 1))).y - 1, //logical -> window coordinates - 0, mainWin_->GetClientSize().GetHeight() - 1); + 0, mainWin_->GetClientSize().GetHeight() - 1); const wxPoint mousePos = mainWin_->GetPosition() + wxPoint(0, clientPosMainWinY); //mainWin_-relative to Grid-relative -- cgit