mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -04:00
[processing] fix error when editing script help
This commit is contained in:
parent
70225a343d
commit
57b450aae5
@ -109,9 +109,9 @@ class ScriptEditorDialog(QDialog, Ui_DlgScriptEditor):
|
||||
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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user