Fix CMake highlighting with dark theme

This commit is contained in:
dt
2010-03-30 13:08:39 +02:00
parent 2cb9514818
commit cf6bf87244

View File

@@ -102,6 +102,7 @@ TextEditor::BaseTextEditorEditable *CMakeEditor::createEditableInterface()
void CMakeEditor::setFontSettings(const TextEditor::FontSettings &fs)
{
TextEditor::BaseTextEditor::setFontSettings(fs);
CMakeHighlighter *highlighter = qobject_cast<CMakeHighlighter*>(baseTextDocument()->syntaxHighlighter());
if (!highlighter)
return;