projects
/
pspp-builds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1812100
)
output: Improve warnings about negative table dimensions.
author
Ben Pfaff
<blp@gnu.org>
Sat, 20 Jun 2009 05:51:31 +0000
(22:51 -0700)
committer
Ben Pfaff
<blp@gnu.org>
Sat, 20 Jun 2009 05:57:19 +0000
(22:57 -0700)
src/output/table.c
patch
|
blob
|
history
diff --git
a/src/output/table.c
b/src/output/table.c
index 91f99a1f265ca8cd3358cf0fb837156f61f0f2d9..9457923ab8f8c2e517fe6e2a5a74ac27705156f0 100644
(file)
--- 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)
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)
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++)
/* Add up header sizes. */
for (i = 0, r->wl = r->wrv[0]; i < r->l; i++)