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 <>
parent e6b41d7e
......@@ -1202,6 +1202,9 @@ void CPPEditorWidget::finishHighlightSymbolUsages()
if (m_highlighter.isCanceled())
return; // aborted
else if (m_lastSemanticInfo.doc.isNull())
TextEditor::SyntaxHighlighter *highlighter = baseTextDocument()->syntaxHighlighter();
QTC_ASSERT(highlighter, return);
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment