diff options
Diffstat (limited to 'wx+/grid.cpp')
-rw-r--r-- | wx+/grid.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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 |