From: John Darrington Date: Sun, 3 Mar 2013 06:53:27 +0000 (+0100) Subject: Fixed bug where repeated values were not being handled correctly X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b9eebec7ee7819f004d7e683cbc354a456279e5e;p=pspp Fixed bug where repeated values were not being handled correctly --- diff --git a/src/data/ods-reader.c b/src/data/ods-reader.c index fe9b90049b..34e8d67a55 100644 --- a/src/data/ods-reader.c +++ b/src/data/ods-reader.c @@ -934,7 +934,7 @@ ods_file_casereader_read (struct casereader *reader UNUSED, void *r_) for (col = 0; col < r->col_span; ++col) { const struct variable *var; - const int idx = r->col + col - r->start_col - 1; + const int idx = r->col - col - r->start_col - 1; if (idx < 0) continue; if (r->stop_col != -1 && idx > r->stop_col - r->start_col )