From 261edbe9d0181f81f58998158946e4f9687c99e3 Mon Sep 17 00:00:00 2001 From: Linas Vepstas Date: Thu, 27 Aug 1998 22:40:07 +0000 Subject: [PATCH] bug fix git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@1047 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/register/cellblock.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/register/cellblock.c b/src/register/cellblock.c index 2051a6a74e..99c02377f4 100644 --- a/src/register/cellblock.c +++ b/src/register/cellblock.c @@ -187,9 +187,15 @@ xaccNextRight (CellBlock *arr, int row, int col, if ((row >= arr->numRows) || (col >= arr->numCols)) return; /* -1 is a valid value for next ... it signifies that traversal - * should go to next tab group, so do not check for neg values */ - /* if ((0 > next_row) || (0 > next_col)) return; */ - if ((next_row >= arr->numRows) || (next_col >= arr->numCols)) return; + * should go to next tab group, so do not check for neg values. + * if ((0 > next_row) || (0 > next_col)) return; + */ + + /* if the "next" location to hop to is larger than the cursor, that + * just means that we should hop to the next cursor. Thus, large + * values for next *are* valid. + * if ((next_row >= arr->numRows) || (next_col >= arr->numCols)) return; + */ (arr->right_traverse_r)[row][col] = next_row; (arr->right_traverse_c)[row][col] = next_col;