diff options
author | Andrés <andmarti@gmail.com> | 2021-04-14 19:56:06 -0300 |
---|---|---|
committer | Andrés <andmarti@gmail.com> | 2021-04-14 19:56:06 -0300 |
commit | c8ea7dff32b4815738fe94544d69ea7893a7cbd0 (patch) | |
tree | 7b59dd1f71a3af113b0104bef4f8a24eb90dfba1 /src/undo.c | |
parent | 4e8dfce6ba6a49d45ecdfabbd6e978b1f7b67739 (diff) |
work on multiple frozen rows/columns. changed calc_offscr functions
Diffstat (limited to 'src/undo.c')
-rw-r--r-- | src/undo.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -790,10 +790,10 @@ void do_undo() { int i; if (ul->range_shift->delta_rows > 0) for (i = ul->range_shift->brrow + ul->range_shift->delta_rows; i <= maxrow; i++) - rowformat[i - ul->range_shift->delta_rows] = rowformat[i]; + row_format[i - ul->range_shift->delta_rows] = row_format[i]; else for (i = maxrow; i >= ul->range_shift->tlrow - ul->range_shift->delta_rows; i--) - rowformat[i] = rowformat[i + ul->range_shift->delta_rows]; + row_format[i] = row_format[i + ul->range_shift->delta_rows]; } } @@ -867,7 +867,7 @@ void do_undo() { for (i=0; i < size; i++) { if (uf->rows[i].type == 'R') { - rowformat[uf->rows[i].row] = uf->rows[i].format; + row_format[uf->rows[i].row] = uf->rows[i].format; } } } @@ -982,10 +982,10 @@ void do_redo() { int i; if (ul->range_shift->delta_rows > 0) for (i = maxrow; i >= ul->range_shift->tlrow + ul->range_shift->delta_rows; i--) - rowformat[i] = rowformat[i - ul->range_shift->delta_rows]; + row_format[i] = row_format[i - ul->range_shift->delta_rows]; else for (i = ul->range_shift->tlrow; i - ul->range_shift->delta_rows <= maxrow; i++) - rowformat[i] = rowformat[i - ul->range_shift->delta_rows]; + row_format[i] = row_format[i - ul->range_shift->delta_rows]; } } @@ -1059,7 +1059,7 @@ void do_redo() { for (i=0; i < size; i++) { if (uf->rows[i].type == 'A') { - rowformat[uf->rows[i].row] = uf->rows[i].format; + row_format[uf->rows[i].row] = uf->rows[i].format; } } } |