Skip to content

Commit

Permalink
fix #3188
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@14507 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Nov 4, 2010
1 parent 2d62017 commit eb7b22a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/providers/delimitedtext/qgsdelimitedtextprovider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,9 @@ QgsDelimitedTextProvider::QgsDelimitedTextProvider( QString uri )
{
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
Expand Down Expand Up @@ -362,6 +365,8 @@ bool QgsDelimitedTextProvider::nextFeature( QgsFeature& feature )
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 );
Expand Down

0 comments on commit eb7b22a

Please sign in to comment.