Commit 55130a33 authored by Erik Verbruggen's avatar Erik Verbruggen

C++: prevent possible nullptr deref.

Change-Id: Ibc138bcfdef4b6a5dd154e819d568398ecace982
Reviewed-by: default avatarNikolai Kosjar <nikolai.kosjar@digia.com>
parent 20d7faa2
......@@ -148,6 +148,8 @@ unsigned SemanticHighlighter::documentRevision() const
void SemanticHighlighter::updateFormatMapFromFontSettings()
{
QTC_ASSERT(m_baseTextDocument, return);
const TextEditor::FontSettings &fs = m_baseTextDocument->fontSettings();
m_formatMap[TypeUse] = fs.toTextCharFormat(TextEditor::C_TYPE);
......
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