diff --git a/src/plugins/pythoneditor/pythoneditorwidget.cpp b/src/plugins/pythoneditor/pythoneditorwidget.cpp index ba5d80110c8..ddd6fe9da4a 100644 --- a/src/plugins/pythoneditor/pythoneditorwidget.cpp +++ b/src/plugins/pythoneditor/pythoneditorwidget.cpp @@ -81,14 +81,10 @@ void EditorWidget::setFontSettings(const TextEditor::FontSettings &fs) { TextEditor::BaseTextEditorWidget::setFontSettings(fs); -#ifdef PYTHONEDITOR_HIGHLIGHTER_H PythonHighlighter *highlighter = qobject_cast(baseTextDocument()->syntaxHighlighter()); if (highlighter) - { highlighter->setFontSettings(fs); - } -#endif } TextEditor::BaseTextEditor *EditorWidget::createEditor()