From ea18007633b31901f2ae275cc0576c3f7ce99fc9 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Fri, 3 Dec 2010 07:34:13 +0000 Subject: Fixed a bug in the csv reader, it would drop the last field in a line if the comma was the last character. It's best to preserve every field, even if it's completely blank. --- src/csvreader.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/csvreader.cpp b/src/csvreader.cpp index 08803e7..f3133c2 100644 --- a/src/csvreader.cpp +++ b/src/csvreader.cpp @@ -56,7 +56,10 @@ Bu::StrArray Bu::CsvReader::readLine() { i++; if( !i ) + { + aVals.append(""); break; + } aVals.append( sDecode( i ) ); } else -- cgit v1.2.3