diff options
author | Sergey Shambir <sergey.shambir.auto@gmail.com> | 2013-03-19 00:33:55 +0400 |
---|---|---|
committer | Sergey Shambir <sergey.shambir.auto@gmail.com> | 2013-03-19 19:50:52 +0100 |
commit | 687a54697280ac79b18d082541c64ad79f57dec9 (patch) | |
tree | d5d83ff1665d2c8bed46ef7c1496a98ef5ae999d /src/plugins/pythoneditor/pythoneditorwidget.cpp | |
parent | c722efb074d1e8473a5ec959d892d4ada063715e (diff) | |
download | qt-creator-687a54697280ac79b18d082541c64ad79f57dec9.tar.gz |
PythonEditor: fixed 100% crash in editor
removed erroneous #ifdef
Change-Id: I6b5b4c70f7dde3ddbf7e6e4270d332c50ad6d30a
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
Diffstat (limited to 'src/plugins/pythoneditor/pythoneditorwidget.cpp')
-rw-r--r-- | src/plugins/pythoneditor/pythoneditorwidget.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/plugins/pythoneditor/pythoneditorwidget.cpp b/src/plugins/pythoneditor/pythoneditorwidget.cpp index ba5d80110c..ddd6fe9da4 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<PythonHighlighter *>(baseTextDocument()->syntaxHighlighter()); if (highlighter) - { highlighter->setFontSettings(fs); - } -#endif } TextEditor::BaseTextEditor *EditorWidget::createEditor() |