Skip to content

Commit

Permalink
Fix Qt warning on QChar
Browse files Browse the repository at this point in the history
Fix #40867
  • Loading branch information
elpaso committed Jan 17, 2022
1 parent 8ef270b commit 1fda737
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/delimitedtext/qgsdelimitedtextfile.cpp
Expand Up @@ -844,7 +844,7 @@ QgsDelimitedTextFile::Status QgsDelimitedTextFile::parseQuoted( QString &buffer,
{
// if is also escape and next character is quote, then
// escape the quote..
if ( isEscape && buffer[cp] == quoteChar )
if ( isEscape && cp < buffer.length() && buffer[cp] == quoteChar )
{
field.append( quoteChar );
cp++;
Expand Down

0 comments on commit 1fda737

Please sign in to comment.