[QGIS Commit] r14507 - trunk/qgis/src/providers/delimitedtext

svn_qgis at osgeo.org svn_qgis at osgeo.org
Thu Nov 4 18:49:47 EDT 2010


Author: jef
Date: 2010-11-04 15:49:47 -0700 (Thu, 04 Nov 2010)
New Revision: 14507

Modified:
   trunk/qgis/src/providers/delimitedtext/qgsdelimitedtextprovider.cpp
Log:
fix #3188

Modified: trunk/qgis/src/providers/delimitedtext/qgsdelimitedtextprovider.cpp
===================================================================
--- trunk/qgis/src/providers/delimitedtext/qgsdelimitedtextprovider.cpp	2010-11-04 16:33:38 UTC (rev 14506)
+++ trunk/qgis/src/providers/delimitedtext/qgsdelimitedtextprovider.cpp	2010-11-04 22:49:47 UTC (rev 14507)
@@ -218,6 +218,9 @@
   {
     lineNumber++;
     line = readLine( mStream ); // line of text excluding '\n', default local 8 bit encoding.
+    if ( line.isEmpty() )
+      continue;
+
     if ( !hasFields )
     {
       // Get the fields from the header row and store them in the
@@ -362,6 +365,8 @@
     double x = 0.0;
     double y = 0.0;
     QString line = readLine( mStream ); // Default local 8 bit encoding
+    if ( line.isEmpty() )
+      continue;
 
     // lex the tokens from the current data line
     QStringList tokens = splitLine( line );



More information about the QGIS-commit mailing list