From 35b9b4a4ea7c99c5e01e290f8bd2476b4feb64e6 Mon Sep 17 00:00:00 2001 From: mongo Date: Wed, 27 Jun 2018 11:52:49 -0300 Subject: work on issue 261 --- src/file.c | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/file.c b/src/file.c index 7fe945c..5d9e2f3 100644 --- a/src/file.c +++ b/src/file.c @@ -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"); } - - } } -- cgit v1.2.3