mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-16 00:03:12 -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):
|
def editHelp(self):
|
||||||
if self.alg is None:
|
if self.alg is None:
|
||||||
if self.algType == self.SCRIPT_PYTHON:
|
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:
|
elif self.algType == self.SCRIPT_R:
|
||||||
alg = RAlgorithm(None, unicode(self.editor.toPlainText()))
|
alg = RAlgorithm(None, unicode(self.editor.text()))
|
||||||
else:
|
else:
|
||||||
alg = self.alg
|
alg = self.alg
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user