Skip to content

Commit

Permalink
Fix importing CSV files with no trailing line break and only one column
Browse files Browse the repository at this point in the history
See issue #193.
  • Loading branch information
MKleusberg committed Nov 14, 2019
1 parent ec41b49 commit bbeada2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/csvparser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ CSVParser::ParserResult CSVParser::parse(csvRowFunction insertFunction, QTextStr
}
}

if(record.num_fields)
if(record.num_fields || record.fields->buffer_length)
{
addColumn(record, field, m_bTrimFields);

Expand Down

0 comments on commit bbeada2

Please sign in to comment.