forked from qt-creator/qt-creator
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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user