Commit 687a5469 authored by Sergey Shambir's avatar Sergey Shambir

PythonEditor: fixed 100% crash in editor

removed erroneous #ifdef

Change-Id: I6b5b4c70f7dde3ddbf7e6e4270d332c50ad6d30a
Reviewed-by: Orgad Shaneh's avatarOrgad Shaneh <orgads@gmail.com>
Reviewed-by: default avatarTobias Hunger <tobias.hunger@digia.com>
parent c722efb0
......@@ -81,14 +81,10 @@ void EditorWidget::setFontSettings(const TextEditor::FontSettings &fs)
{
TextEditor::BaseTextEditorWidget::setFontSettings(fs);
#ifdef PYTHONEDITOR_HIGHLIGHTER_H
PythonHighlighter *highlighter =
qobject_cast<PythonHighlighter *>(baseTextDocument()->syntaxHighlighter());
if (highlighter)
{
highlighter->setFontSettings(fs);
}
#endif
}
TextEditor::BaseTextEditor *EditorWidget::createEditor()
......
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