diff options
author | mongo <andmarti@gmail.com> | 2018-06-27 11:52:49 -0300 |
---|---|---|
committer | mongo <andmarti@gmail.com> | 2018-06-27 11:52:49 -0300 |
commit | 35b9b4a4ea7c99c5e01e290f8bd2476b4feb64e6 (patch) | |
tree | 03afc504c429b0c9e8a4a36e1d706d59e0fec57a /src/file.c | |
parent | 1630434b45b28ca62313668884a6039d84f4a135 (diff) |
work on issue 261
Diffstat (limited to 'src/file.c')
-rw-r--r-- | src/file.c | 15 |
1 files changed, 11 insertions, 4 deletions
@@ -444,8 +444,17 @@ void write_fd(register FILE *f, int r0, int c0, int rn, int cn) { } - // write locked cells - // lock should be stored after any other command + + + } + } + + // write locked cells + // lock should be stored after any other command + for (r = r0; r <= rn; r++) { + pp = ATBL(tbl, r, c0); + for (c = c0; c <= cn; c++, pp++) + if (*pp) { // previous implementation //if ((*pp)->flags & is_locked) // (void) fprintf(f, "lock %s%d\n", coltoa((*pp)->col), (*pp)->row); @@ -460,8 +469,6 @@ void write_fd(register FILE *f, int r0, int c0, int rn, int cn) { else fprintf(f, "\n"); } - - } } |