Skip to content

Commit eb7b22a

Browse files
author
jef
committedNov 4, 2010
fix #3188
git-svn-id: http://svn.osgeo.org/qgis/trunk@14507 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 2d62017 commit eb7b22a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
 

‎src/providers/delimitedtext/qgsdelimitedtextprovider.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,9 @@ QgsDelimitedTextProvider::QgsDelimitedTextProvider( QString uri )
218218
{
219219
lineNumber++;
220220
line = readLine( mStream ); // line of text excluding '\n', default local 8 bit encoding.
221+
if ( line.isEmpty() )
222+
continue;
223+
221224
if ( !hasFields )
222225
{
223226
// Get the fields from the header row and store them in the
@@ -362,6 +365,8 @@ bool QgsDelimitedTextProvider::nextFeature( QgsFeature& feature )
362365
double x = 0.0;
363366
double y = 0.0;
364367
QString line = readLine( mStream ); // Default local 8 bit encoding
368+
if ( line.isEmpty() )
369+
continue;
365370

366371
// lex the tokens from the current data line
367372
QStringList tokens = splitLine( line );

0 commit comments

Comments
 (0)
Please sign in to comment.