Commit 120ab388 authored by David Schulz's avatar David Schulz Committed by hjk

Editor: fix revision of semanticinfo

Task-number: QTCREATORBUG-7298

Change-Id: I09258fa5a72d47c6a154e97d5f880ccab1b697fd
Reviewed-by: default avatarhjk <qthjk@ovi.com>
parent 90058c2a
......@@ -2122,7 +2122,7 @@ void SemanticHighlighter::run()
SemanticInfo SemanticHighlighter::semanticInfo(const Source &source)
{
SemanticInfo semanticInfo;
semanticInfo.revision = source.revision;
semanticInfo.revision = m_lastSemanticInfo.revision;
semanticInfo.forced = source.force;
m_mutex.lock();
......@@ -2162,6 +2162,7 @@ SemanticInfo SemanticHighlighter::semanticInfo(const Source &source)
DeclarationAST *currentFunctionDefinition = functionDefinitionUnderCursor(ast, source.line, source.column);
const LocalSymbols useTable(semanticInfo.doc, currentFunctionDefinition);
semanticInfo.revision = source.revision;
semanticInfo.localUses = useTable.uses;
semanticInfo.hasQ = useTable.hasQ;
semanticInfo.hasD = useTable.hasD;
......
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