diff data/fileio/CSVFormat.cpp @ 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
parents 69cc0454ed72
children 1888ca033a84
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