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>
This commit is contained in:
Sergey Shambir
2013-03-19 00:33:55 +04:00
parent c722efb074
commit 687a546972

View File

@@ -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()