Fixed error for two line csv files

This commit is contained in:
Harry Moffat 2014-04-18 16:44:44 +00:00
parent 4e363c1073
commit 446b39c877

View file

@ -290,6 +290,8 @@ static void get_sizes(FILE* fp, int& nTitleLines, int& nColTitleLines,
if (maxCommas < numCommas[i]) {
maxCommas = numCommas[i];
}
} else {
maxCommas = numCommas[0];
}
}
/*
@ -326,9 +328,13 @@ static void get_sizes(FILE* fp, int& nTitleLines, int& nColTitleLines,
}
}
int doingLineType = LT_TITLELINE;
if (nScanLines == 2) {
nTitleLines = 0;
doingLineType = LT_COLTITLE;
}
rewind(fp);
for (i = 0; i < nScanLines; i++) {
retn = read_line(fp, scanLine, 0);