forked from qt-creator/qt-creator
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:
@@ -81,15 +81,11 @@ 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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user