changeset 991:1974859baba5

Handle variable columns by importing all of them (not just the minimum number)
author Chris Cannam
date Fri, 03 Oct 2014 15:27:02 +0100 (2014-10-03)
parents dc1695b90a58
children 7a8f7a553b37 ee9f4477f65b
files data/fileio/CSVFormat.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/data/fileio/CSVFormat.cpp	Fri Oct 03 15:09:27 2014 +0100
+++ b/data/fileio/CSVFormat.cpp	Fri Oct 03 15:27:02 2014 +0100
@@ -103,7 +103,7 @@
     QStringList list = StringBits::split(line, m_separator[0], m_allowQuoting);
 
     int cols = list.size();
-    if (lineno == 0 || (cols < m_columnCount)) m_columnCount = cols;
+    if (lineno == 0 || (cols > m_columnCount)) m_columnCount = cols;
     if (cols != m_columnCount) m_variableColumnCount = true;
 
     // All columns are regarded as having these qualities until we see