Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix Qt warning on QChar
Fix #40867
  • Loading branch information
elpaso authored and nyalldawson committed Jan 17, 2022
1 parent a0c9ee2 commit c9e493c
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 c9e493c

Please sign in to comment.