Skip to content
Permalink
Browse files

fix #3188

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@14507 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef
jef committed Nov 4, 2010
1 parent 5254d95 commit 6f7786dd3430b56b0b7baeb8dc82745098e1378c
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/providers/delimitedtext/qgsdelimitedtextprovider.cpp
@@ -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
@@ -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 );

0 comments on commit 6f7786d

Please sign in to comment.
You can’t perform that action at this time.