Skip to content

Commit

Permalink
[processing] fix error when editing script help
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy committed May 5, 2014
1 parent 70225a3 commit 57b450a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/plugins/processing/gui/ScriptEditorDialog.py
Expand Up @@ -109,9 +109,9 @@ def __init__(self, algType, alg):
def editHelp(self):
if self.alg is None:
if self.algType == self.SCRIPT_PYTHON:
alg = ScriptAlgorithm(None, unicode(self.editor.toPlainText()))
alg = ScriptAlgorithm(None, unicode(self.editor.text()))
elif self.algType == self.SCRIPT_R:
alg = RAlgorithm(None, unicode(self.editor.toPlainText()))
alg = RAlgorithm(None, unicode(self.editor.text()))
else:
alg = self.alg

Expand Down

0 comments on commit 57b450a

Please sign in to comment.