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

Change-Id: I12561ae0dc0e1912b3aefde92deff7b8da84e3be
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
This commit is contained in:
Erik Verbruggen
2013-12-10 14:33:22 +01:00
parent e6b41d7e2f
commit bdec951ee1

View File

@@ -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);