Fixed error for two line csv files
This commit is contained in:
parent
4e363c1073
commit
446b39c877
1 changed files with 8 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue