comparison data/fileio/CSVFileReader.cpp @ 261:2fc6f3829f04 sv1-1.0rc1

* Ignore blank lines in CSV-type file import
author Chris Cannam
date Mon, 30 Apr 2007 14:52:24 +0000
parents dc46851837d6
children 7336fe3a7caa
comparison
equal deleted inserted replaced
260:d4a33cdca86f 261:2fc6f3829f04
126 size_t frameNo = 0; 126 size_t frameNo = 0;
127 127
128 while (!in.atEnd()) { 128 while (!in.atEnd()) {
129 129
130 QString line = in.readLine().trimmed(); 130 QString line = in.readLine().trimmed();
131 if (line.startsWith("#")) continue; 131 if (line.startsWith("#") || line.trimmed() == "") continue;
132 132
133 QStringList list = line.split(separator); 133 QStringList list = line.split(separator);
134 134
135 if (!model) { 135 if (!model) {
136 136