forked from qt-creator/qt-creator
Fixed a crasher.
This commit is contained in:
@@ -1901,7 +1901,9 @@ SemanticInfo SemanticHighlighter::semanticInfo(const Source &source)
|
|||||||
snapshot = m_lastSemanticInfo.snapshot;
|
snapshot = m_lastSemanticInfo.snapshot;
|
||||||
doc = m_lastSemanticInfo.doc;
|
doc = m_lastSemanticInfo.doc;
|
||||||
m_mutex.unlock();
|
m_mutex.unlock();
|
||||||
} else {
|
}
|
||||||
|
|
||||||
|
if (!doc) {
|
||||||
const QByteArray preprocessedCode = source.snapshot.preprocessedCode(source.code, source.fileName);
|
const QByteArray preprocessedCode = source.snapshot.preprocessedCode(source.code, source.fileName);
|
||||||
|
|
||||||
doc = source.snapshot.documentFromSource(preprocessedCode, source.fileName);
|
doc = source.snapshot.documentFromSource(preprocessedCode, source.fileName);
|
||||||
|
|||||||
Reference in New Issue
Block a user