z1 is a row or column number, not a count of header rows or columns, so it
only makes sense to compare it against another row or column number, not
against a count of rows or columns.
/* PSPP - a program for statistical analysis.
- Copyright (C) 2009 Free Software Foundation, Inc.
+ Copyright (C) 2009, 2010 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
if (add_headers)
{
- if (z0 == subtable->h[axis][0] && z1 == subtable->h[axis][1])
+ if (z0 == subtable->h[axis][0]
+ && z1 == subtable->n[axis] - subtable->h[axis][1])
return subtable;
if (subtable->h[axis][0])