summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authormongo <andmarti@gmail.com>2018-06-27 11:52:49 -0300
committermongo <andmarti@gmail.com>2018-06-27 11:52:49 -0300
commit35b9b4a4ea7c99c5e01e290f8bd2476b4feb64e6 (patch)
tree03afc504c429b0c9e8a4a36e1d706d59e0fec57a /src
parent1630434b45b28ca62313668884a6039d84f4a135 (diff)
work on issue 261
Diffstat (limited to 'src')
-rw-r--r--src/file.c15
1 files changed, 11 insertions, 4 deletions
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");
}
-
-
}
}