X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Foutput%2Ftable-select.c;h=241448e572538491186e0506168b025be8533e13;hb=af097b7430b4080eec4399df6898a9e97d17d0b4;hp=1c2956a819bc8744149c028f69f6bce4181ad279;hpb=d0b91eae59319ab2756d0d43b9cb15eb9cd3c234;p=pspp diff --git a/src/output/table-select.c b/src/output/table-select.c index 1c2956a819..241448e572 100644 --- a/src/output/table-select.c +++ b/src/output/table-select.c @@ -1,5 +1,5 @@ /* 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 @@ -97,7 +97,8 @@ table_select_slice (struct table *subtable, enum table_axis axis, 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])