summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
86642e6)
tab.c could not be compile with --enable-debug configuration because
the return value did not fit with the function. In addition a typo in
a "bad cell" check was fixed.
if (x1 + table->col_ofs < 0 || x1 + table->col_ofs >= tab_nc (table)
|| y1 + table->row_ofs < 0 || y1 + table->row_ofs >= tab_nr (table)
|| x2 < x1 || x2 + table->col_ofs >= tab_nc (table)
if (x1 + table->col_ofs < 0 || x1 + table->col_ofs >= tab_nc (table)
|| y1 + table->row_ofs < 0 || y1 + table->row_ofs >= tab_nr (table)
|| x2 < x1 || x2 + table->col_ofs >= tab_nc (table)
- || y2 < y2 || y2 + table->row_ofs >= tab_nr (table))
+ || y2 < y1 || y2 + table->row_ofs >= tab_nr (table))
{
printf ("tab_joint_text(): bad cell "
"(%d+%d=%d,%d+%d=%d)-(%d+%d=%d,%d+%d=%d) in table size (%d,%d)\n",
{
printf ("tab_joint_text(): bad cell "
"(%d+%d=%d,%d+%d=%d)-(%d+%d=%d,%d+%d=%d) in table size (%d,%d)\n",
x2, table->col_ofs, x2 + table->col_ofs,
y2, table->row_ofs, y2 + table->row_ofs,
tab_nc (table), tab_nr (table));
x2, table->col_ofs, x2 + table->col_ofs,
y2, table->row_ofs, y2 + table->row_ofs,
tab_nc (table), tab_nr (table));