From: Ben Pfaff Date: Mon, 28 Dec 2020 18:53:58 +0000 (-0800) Subject: html: Fix border-right for non-square tables. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2fa892d953b99a7eb121081dc37a87343d2c1003;p=pspp html: Fix border-right for non-square tables. Fixes: b11b5d874764 ("table: Get rid of accessor functions for 'h' and 'n' members.") --- diff --git a/src/output/html.c b/src/output/html.c index 786d8b6e89..186b1d3f5e 100644 --- a/src/output/html.c +++ b/src/output/html.c @@ -624,7 +624,7 @@ html_output_table (struct html_driver *html, const struct table_item *item) int left = table_get_rule (t, TABLE_HORZ, x, y, &color); put_border (style, left, "left"); - if (x + colspan == t->n[V]) + if (x + colspan == t->n[H]) { int right = table_get_rule (t, TABLE_HORZ, x + colspan, y, &color);