Fixed bug where repeated values were not being handled correctly
authorJohn Darrington <john@darrington.wattle.id.au>
Sun, 3 Mar 2013 06:53:27 +0000 (07:53 +0100)
committerJohn Darrington <john@darrington.wattle.id.au>
Sun, 3 Mar 2013 06:53:27 +0000 (07:53 +0100)
src/data/ods-reader.c

index fe9b90049b262f98dcb6de7931ef7e8217a0fcf0..34e8d67a554a0fabb9da57cd80bf1e1ca401331d 100644 (file)
@@ -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 )