Skip to content

Commit 25435b5

Browse files
author
g_j_m
committedNov 13, 2007
Fix for a crash when loading a delimited text file where the delimiter
doesn't parse the file into multiple columns git-svn-id: http://svn.osgeo.org/qgis/trunk@7391 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 93104c9 commit 25435b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/providers/delimitedtext/qgsdelimitedtextprovider.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ QgsDelimitedTextProvider::QgsDelimitedTextProvider(QString uri)
178178
QgsDebugMsg("Field count for the delimited text file is " + QString::number(attributeFields.size()));
179179
hasFields = true;
180180
}
181-
else
181+
else if (mXFieldIndex != -1 && mYFieldIndex != -1)
182182
{
183183
mNumberFeatures++;
184184

0 commit comments

Comments
 (0)
Please sign in to comment.