X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Foutput%2Ftable-select.c;h=dcc6b7de2af8c8a4ead62190a532fd96d8d83c56;hb=81579d9e9f994fb2908f50af41c3eb033d216e58;hp=1c2956a819bc8744149c028f69f6bce4181ad279;hpb=f550aee00a62fe1d8baf62d83cd7efef6cc2ee92;p=pspp-builds.git diff --git a/src/output/table-select.c b/src/output/table-select.c index 1c2956a8..dcc6b7de 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, 2011 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 @@ -16,9 +16,9 @@ #include -#include -#include -#include +#include "libpspp/assertion.h" +#include "libpspp/cast.h" +#include "output/table-provider.h" #include "gl/minmax.h" #include "gl/xalloc.h" @@ -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])