From b9eebec7ee7819f004d7e683cbc354a456279e5e Mon Sep 17 00:00:00 2001 From: John Darrington Date: Sun, 3 Mar 2013 07:53:27 +0100 Subject: [PATCH] Fixed bug where repeated values were not being handled correctly --- src/data/ods-reader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ) -- 2.30.2