summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorandmarti1424 <scim.spreadsheet@gmail.com>2016-04-17 14:39:07 -0300
committerandmarti1424 <scim.spreadsheet@gmail.com>2016-04-17 14:39:07 -0300
commita8b42f0ba3d39e43d899eac5432ce29a4818d2e5 (patch)
treef8a800b27baddc1c119e5d043e2bfd98c85f6c4d
parentbbcf31c48d67b4d768eb229626ca0cd4e93ec358 (diff)
padding now is saved for each cell and not just a column
-rwxr-xr-xsrc/file.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/file.c b/src/file.c
index 2d23424..6e2eb91 100755
--- a/src/file.c
+++ b/src/file.c
@@ -256,13 +256,6 @@ void write_fd(register FILE *f, int r0, int c0, int rn, int cn) {
if (row_hidden[r])
(void) fprintf(f, "hide %d\n", r);
- // padding
- for (c = c0; c <= cn; c++) {
- pp = ATBL(tbl, 0, c);
- if (*pp && (*pp)->pad)
- (void) fprintf(f, "pad %d %s\n", (*pp)->pad, coltoa(c));
- }
-
//write_ranges(f);
write_marks(f);
@@ -357,6 +350,9 @@ void write_fd(register FILE *f, int r0, int c0, int rn, int cn) {
(void) fprintf(f, "addnote %s ", v_name((*pp)->row, (*pp)->col));
(void) fprintf(f, "%s\n", r_name((*pp)->nrow, (*pp)->ncol, (*pp)->nlastrow, (*pp)->nlastcol));
}*/
+ // padding
+ if ((*pp)->pad)
+ (void) fprintf(f, "pad %d %s%d\n", (*pp)->pad, coltoa((*pp)->col), (*pp)->row);
}
}