diff options
author | Andrés <andmarti@gmail.com> | 2021-06-12 08:28:14 -0300 |
---|---|---|
committer | Andrés <andmarti@gmail.com> | 2021-06-12 08:28:14 -0300 |
commit | 2abe3316b928b27b4d8ec9244d2591fd83d8e4d0 (patch) | |
tree | 5fcd655a718b94102bd742bfea1f8ea99af948e0 /src | |
parent | e71c2b2bf3120ba12badd73dcb47124b36e7f3d4 (diff) |
work on issue #569
Diffstat (limited to 'src')
-rw-r--r-- | src/actions/shift.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/actions/shift.c b/src/actions/shift.c index cb4fc05..f96ada0 100644 --- a/src/actions/shift.c +++ b/src/actions/shift.c @@ -195,7 +195,9 @@ void shift_range(struct sheet * sh, int delta_rows, int delta_cols, int tlrow, i void shift_cells_down(struct sheet * sh, int deltarows, int deltacols) { int r, c; struct ent ** pp; - if (sh->currow > sh->maxrow) sh->maxrow = sh->currow; + //if (sh->currow + deltarows > sh->maxrow) sh->maxrow = sh->currow + deltarows; + //commented for #569 + //if (sh->currow > sh->maxrow) sh->maxrow = sh->currow; sh->maxrow += deltarows; if ((sh->maxrow >= sh->maxrows) && !growtbl(sh, GROWROW, sh->maxrow, 0)) { sh->maxrow = sh->maxrows - 1; @@ -231,8 +233,8 @@ void shift_cells_right(struct sheet * sh, int deltarows, int deltacols) { int r, c; struct ent ** pp; - if (sh->curcol + deltacols > sh->maxcol) - sh->maxcol = sh->curcol + deltacols; + //commented for #569 + //if (sh->curcol + deltacols > sh->maxcol) sh->maxcol = sh->curcol + deltacols; sh->maxcol += deltacols; if ((sh->maxcol >= sh->maxcols) && !growtbl(sh, GROWCOL, 0, sh->maxcol)) { |