diff --git a/src/Mod/CAM/Path/Main/Gui/Editor.py b/src/Mod/CAM/Path/Main/Gui/Editor.py index 1565a93080..a8055c317c 100644 --- a/src/Mod/CAM/Path/Main/Gui/Editor.py +++ b/src/Mod/CAM/Path/Main/Gui/Editor.py @@ -81,3 +81,7 @@ class CodeEditor(QPlainTextEdit): self.lineNumberArea.setGeometry( QRect(cr.left(), cr.top(), self.lineNumberAreaWidth(), cr.height()) ) + + def setText(self, text): + """Backward compatibility method for setText() calls.""" + self.setPlainText(text)