Commit bdec951e authored by Erik Verbruggen's avatar Erik Verbruggen

C++: do not re-highlight if the document in the semantic info is invalid

Change-Id: I12561ae0dc0e1912b3aefde92deff7b8da84e3be
Reviewed-by: default avatarNikolai Kosjar <nikolai.kosjar@digia.com>
parent e6b41d7e
......@@ -1202,6 +1202,9 @@ void CPPEditorWidget::finishHighlightSymbolUsages()
if (m_highlighter.isCanceled())
return; // aborted
else if (m_lastSemanticInfo.doc.isNull())
return;
TextEditor::SyntaxHighlighter *highlighter = baseTextDocument()->syntaxHighlighter();
QTC_ASSERT(highlighter, return);
......
Markdown is supported
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