File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
src/providers/delimitedtext Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -218,6 +218,9 @@ QgsDelimitedTextProvider::QgsDelimitedTextProvider( QString uri )
218
218
{
219
219
lineNumber++;
220
220
line = readLine ( mStream ); // line of text excluding '\n', default local 8 bit encoding.
221
+ if ( line.isEmpty () )
222
+ continue ;
223
+
221
224
if ( !hasFields )
222
225
{
223
226
// Get the fields from the header row and store them in the
@@ -362,6 +365,8 @@ bool QgsDelimitedTextProvider::nextFeature( QgsFeature& feature )
362
365
double x = 0.0 ;
363
366
double y = 0.0 ;
364
367
QString line = readLine ( mStream ); // Default local 8 bit encoding
368
+ if ( line.isEmpty () )
369
+ continue ;
365
370
366
371
// lex the tokens from the current data line
367
372
QStringList tokens = splitLine ( line );
You can’t perform that action at this time.
0 commit comments