We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent f5b84ca commit 1bf3be5Copy full SHA for 1bf3be5
python/plugins/processing/modeler/CalculatorModelerAlgorithm.py
@@ -85,9 +85,12 @@ def setupUi(self):
85
text = ('You can refer to model values in you formula, using'
86
'single-letter variables, as follows:\n')
87
ichar = 97
88
- for number in numbers:
89
- text += chr(ichar) + '->' + self.resolveValueDescription(number) + '\n'
90
- ichar += 1
+ if numbers:
+ for number in numbers:
+ text += chr(ichar) + '->' + self.resolveValueDescription(number) + '\n'
91
+ ichar += 1
92
+ else:
93
+ text += "\n - No numerical variables are available."
94
self.infoText.setText(text)
95
self.infoText.setEnabled(False)
96
self.formulaText = QtGui.QLineEdit()
0 commit comments