forked from qt-creator/qt-creator
		
	CppEditor: Fix semantic highlighting when zooming
...for the not visible documents. First reset the extra additional formats, then set the new ones, not the other way around. Task-number: QTCREATORBUG-14579 Change-Id: Iae465bd9a7bb0a397fd4917df45955713aaf87c5 Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
This commit is contained in:
		@@ -182,6 +182,14 @@ void BuiltinEditorDocumentProcessor::recalculateSemanticInfoDetached(bool force)
 | 
			
		||||
    m_semanticInfoUpdater.updateDetached(source);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void BuiltinEditorDocumentProcessor::semanticRehighlight()
 | 
			
		||||
{
 | 
			
		||||
    if (m_semanticHighlighter && m_semanticInfoUpdater.semanticInfo().doc) {
 | 
			
		||||
        m_semanticHighlighter->updateFormatMapFromFontSettings();
 | 
			
		||||
        m_semanticHighlighter->run();
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
SemanticInfo BuiltinEditorDocumentProcessor::recalculateSemanticInfo()
 | 
			
		||||
{
 | 
			
		||||
    const auto source = createSemanticInfoSource(false);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user