Skip to content

Commit 57b450a

Browse files
committedMay 5, 2014
[processing] fix error when editing script help
1 parent 70225a3 commit 57b450a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎python/plugins/processing/gui/ScriptEditorDialog.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,9 @@ def __init__(self, algType, alg):
109109
def editHelp(self):
110110
if self.alg is None:
111111
if self.algType == self.SCRIPT_PYTHON:
112-
alg = ScriptAlgorithm(None, unicode(self.editor.toPlainText()))
112+
alg = ScriptAlgorithm(None, unicode(self.editor.text()))
113113
elif self.algType == self.SCRIPT_R:
114-
alg = RAlgorithm(None, unicode(self.editor.toPlainText()))
114+
alg = RAlgorithm(None, unicode(self.editor.text()))
115115
else:
116116
alg = self.alg
117117

0 commit comments

Comments
 (0)
Please sign in to comment.