From: Ben Pfaff Date: Sat, 20 Jun 2009 05:51:31 +0000 (-0700) Subject: output: Improve warnings about negative table dimensions. X-Git-Tag: v0.7.3~33 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=69b939ff89b6689c00063abea3ae93c7b408d6e8;p=pspp-builds.git output: Improve warnings about negative table dimensions. --- 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++)