changeset 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 d4a33cdca86f
children 524bcd89743b
files data/fileio/CSVFileReader.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/data/fileio/CSVFileReader.cpp	Mon Apr 30 14:31:39 2007 +0000
+++ b/data/fileio/CSVFileReader.cpp	Mon Apr 30 14:52:24 2007 +0000
@@ -128,7 +128,7 @@
     while (!in.atEnd()) {
 
 	QString line = in.readLine().trimmed();
-	if (line.startsWith("#")) continue;
+	if (line.startsWith("#") || line.trimmed() == "") continue;
 
 	QStringList list = line.split(separator);