From 69b939ff89b6689c00063abea3ae93c7b408d6e8 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Fri, 19 Jun 2009 22:51:31 -0700 Subject: [PATCH] output: Improve warnings about negative table dimensions. --- src/output/table.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/output/table.c b/src/output/table.c index 91f99a1f..9457923a 100644 --- a/src/output/table.c +++ b/src/output/table.c @@ -1017,10 +1017,12 @@ tabi_render_init (struct som_entity *t_, struct outp_driver *driver, for (i = 0; i < t->nr; i++) if (r->h[i] < 0) - error (0, 0, "height of table row %d not initialized", i); + error (0, 0, "height of table row %d is %d (not initialized?)", + i, r->h[i]); for (i = 0; i < t->nc; i++) if (r->w[i] < 0) - error (0, 0, "width of table column %d not initialized", i); + error (0, 0, "width of table column %d is %d (not initialized?)", + i, r->w[i]); /* Add up header sizes. */ for (i = 0, r->wl = r->wrv[0]; i < r->l; i++) -- 2.30.2