projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2fd4409
)
Fixed bug where repeated values were not being handled correctly
author
John Darrington
<john@darrington.wattle.id.au>
Sun, 3 Mar 2013 06:53:27 +0000
(07:53 +0100)
committer
John Darrington
<john@darrington.wattle.id.au>
Sun, 3 Mar 2013 06:53:27 +0000
(07:53 +0100)
src/data/ods-reader.c
patch
|
blob
|
history
diff --git
a/src/data/ods-reader.c
b/src/data/ods-reader.c
index fe9b90049b262f98dcb6de7931ef7e8217a0fcf0..34e8d67a554a0fabb9da57cd80bf1e1ca401331d 100644
(file)
--- 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 )