Commit 0d35f2f7 authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Ignore empty chunks.

parent 430c78f3
......@@ -983,7 +983,9 @@ void CPPEditor::highlightSymbolUsages(int from, int to)
QMap<int, QVector<SemanticInfo::Use> > chunks = CheckSymbols::chunks(m_highlighter, from, to);
if (chunks.isEmpty())
QTextBlock b = doc->findBlockByNumber(m_nextHighlightBlockNumber);
QMapIterator<int, QVector<SemanticInfo::Use> > it(chunks);
Supports Markdown
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