aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--table.c8
2 files changed, 10 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index ee781bf..b9bf6ce 100644
--- 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
@@ -7828,4 +7833,4 @@ a * [w3m-dev 03276] compile error on EWS4800
* release-0-2-1
* import w3m-0.2.1
-$Id: ChangeLog,v 1.837 2003/05/13 17:17:50 ukai Exp $
+$Id: ChangeLog,v 1.838 2003/05/13 17:20:32 ukai Exp $
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;
}