aboutsummaryrefslogtreecommitdiffstats
path: root/table.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2003-05-13 17:20:32 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2003-05-13 17:20:32 +0000
commitabc6552d11c21821cda03bf47e935262e6261d32 (patch)
treefbf5a8a72b8706b5e213818b001e7e4a605f3cdb /table.c
parent[w3m-dev 03899] minor fixes (diff)
downloadw3m-abc6552d11c21821cda03bf47e935262e6261d32.tar.gz
w3m-abc6552d11c21821cda03bf47e935262e6261d32.zip
[w3m-dev 03900] Re: table rendering
* table.c (check_relative_width): j loop starts from 0 From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
Diffstat (limited to 'table.c')
-rw-r--r--table.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/table.c b/table.c
index 4e514ab..e1fa6ba 100644
--- a/table.c
+++ b/table.c
@@ -1,4 +1,4 @@
-/* $Id: table.c,v 1.42 2003/05/13 17:09:58 ukai Exp $ */
+/* $Id: table.c,v 1.43 2003/05/13 17:20:33 ukai Exp $ */
/*
* HTML table
*/
@@ -3519,7 +3519,7 @@ check_relative_width(struct table *t, int maxwidth)
int n_leftcell = 0;
k = cell->col[i];
r = 0.0;
- for (j = 1; j < cell->colspan[i]; j++) {
+ for (j = 0; j < cell->colspan[i]; j++) {
if (rcolwidth[j + k] > 0)
r += rcolwidth[j + k];
else
@@ -3529,7 +3529,7 @@ check_relative_width(struct table *t, int maxwidth)
cell->fixed_width[i] = -100 * r;
}
else {
- for (j = 1; j < cell->colspan[i]; j++) {
+ for (j = 0; j < cell->colspan[i]; j++) {
if (rcolwidth[j + k] == 0)
rcolwidth[j + k] = (w - r) / n_leftcell;
}
@@ -3557,7 +3557,7 @@ check_relative_width(struct table *t, int maxwidth)
int j, k;
k = cell->col[i];
r = 0.0;
- for (j = 1; j < cell->colspan[i]; j++)
+ for (j = 0; j < cell->colspan[i]; j++)
r += rcolwidth[j + k];
cell->fixed_width[i] = -r * 100;
}