Commit 17abd847 authored by Oliver Kellogg's avatar Oliver Kellogg
Browse files

umbrello/codeimport/adaimport.cpp

- Fix crash on Ada import seen after primary crash cause was lifted
  (followup to commit 3094593e)

CCBUG:333363
parent 31818caf
...@@ -136,7 +136,7 @@ void AdaImport::fillSource(const QString& word) ...@@ -136,7 +136,7 @@ void AdaImport::fillSource(const QString& word)
m_source.append(lexeme); m_source.append(lexeme);
lexeme.clear(); lexeme.clear();
} }
if (c == ':' && word[i + 1] == '=') { if (c == ':' && i < len - 1 && word[i + 1] == '=') {
m_source.append(":="); m_source.append(":=");
i++; i++;
} else { } else {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment