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

Ignore empty chunks.

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