Commit 3b43de1e 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 3c553a2b
......@@ -136,7 +136,7 @@ void AdaImport::fillSource(const QString& word)
m_source.append(lexeme);
lexeme.clear();
}
if (c == ':' && word[i + 1] == '=') {
if (c == ':' && i < len - 1 && word[i + 1] == '=') {
m_source.append(":=");
i++;
} 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