commit fc1f30c7f50ee4716e9b397e2ffaa7990b80e87b
parent 311e29a4ce8025261bd684beda52c7646e3310f6
Author: ukai <ukai>
Date: Tue, 13 May 2003 17:20:32 +0000
[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:
2 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
@@ -1,3 +1,8 @@
+2003-05-14 Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
+
+ * [w3m-dev 03900] Re: table rendering
+ * table.c (check_relative_width): j loop starts from 0
+
2003-05-14 SAKAI Kiyotaka <ksakai@kso.netwk.ntt-at.co.jp>
* [w3m-dev 03899] minor fixes
diff --git a/table.c b/table.c
@@ -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;
}