From 4cabffb9835b8aa2af4aad1e77cd6c175179255d Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 12 Apr 2020 18:29:26 +0200 Subject: [PATCH] Fix test for "almost visible" row in GetFirstFullyVisibleRow() The test didn't correspond to the comment and resulted in always considering the first row not visible instead of the intended effect. --- 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 b2f6fb9db2..e4b6117ba6 100644 --- a/src/generic/grid.cpp +++ b/src/generic/grid.cpp @@ -7843,7 +7843,7 @@ int wxGrid::GetFirstFullyVisibleRow() const // If the row is not fully visible (if only 2 pixels is hidden // the row still looks fully visible). - if ( GetRowTop(row) - 2 < y ) + if ( GetRowTop(row) + 2 < y ) { // Use the next visible row. for ( ;; )