File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
src/providers/delimitedtext Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 28
28
#include < QRegExp>
29
29
#include < QUrl>
30
30
31
-
32
31
#include " qgsapplication.h"
33
32
#include " qgsdataprovider.h"
34
33
#include " qgsfeature.h"
@@ -143,7 +142,7 @@ QgsDelimitedTextProvider::QgsDelimitedTextProvider( QString uri )
143
142
, mWktCrdRegexp( " (\\ -?\\ d+(?:\\ .\\ d*)?\\ s+\\ -?\\ d+(?:\\ .\\ d*)?)\\ s[\\ s\\ d\\ .\\ -]+" )
144
143
, mSkipLines( 0 )
145
144
, mFirstDataLine( 0 )
146
- , mShowInvalidLines( true )
145
+ , mShowInvalidLines( false )
147
146
, mCrs()
148
147
, mWkbType( QGis::WKBUnknown )
149
148
{
@@ -455,7 +454,7 @@ bool QgsDelimitedTextProvider::nextFeature( QgsFeature& feature )
455
454
QString line = readLine ( mStream ); // Default local 8 bit encoding
456
455
if ( line.isEmpty () )
457
456
continue ;
458
-
457
+
459
458
// lex the tokens from the current data line
460
459
QStringList tokens = splitLine ( line );
461
460
@@ -559,7 +558,6 @@ bool QgsDelimitedTextProvider::nextFeature( QgsFeature& feature )
559
558
560
559
// End of the file. If there are any lines that couldn't be
561
560
// loaded, display them now.
562
-
563
561
if ( mShowInvalidLines && !mInvalidLines .isEmpty () )
564
562
{
565
563
mShowInvalidLines = false ;
@@ -577,7 +575,7 @@ bool QgsDelimitedTextProvider::nextFeature( QgsFeature& feature )
577
575
output->showMessage ();
578
576
579
577
// We no longer need these lines.
580
- mInvalidLines .empty ();
578
+ mInvalidLines .clear ();
581
579
}
582
580
583
581
return false ;
You can’t perform that action at this time.
0 commit comments