Skip to content
Permalink
Browse files

Fix some processing breakage

  • Loading branch information
nyalldawson committed Oct 30, 2016
1 parent bd95061 commit d5698be69f2d5fc3e9eb02912ccfc2c358296d52
@@ -103,7 +103,7 @@ def showExpressionsBuilder(self):
variables['%s_max' % name] = "Maximum value of %s" % desc
variables['%s_avg' % name] = "Mean value of %s" % desc
variables['%s_stddev' % name] = "Standard deviation of %s" % desc
for variable, desc in variables.iteritems():
for variable, desc in variables.items():
dlg.expressionBuilder().registerItem("Modeler", variable, "@" + variable, desc, highlightedItem=True)
dlg.setWindowTitle(self.tr('Expression based input'))
if dlg.exec_() == QDialog.Accepted:
@@ -179,7 +179,7 @@ def setupUi(self):
if self.param is not None:
self.minTextBox.setText(str(self.param.min))
self.maxTextBox.setText(str(self.param.max))
self.horizontalLayoutDefault.addWidget(QLabel(self.tr('Default value')))
self.verticalLayout.addWidget(QLabel(self.tr('Default value')))
self.defaultTextBox = QLineEdit()
self.defaultTextBox.setText(self.tr('0'))
if self.param is not None:
@@ -333,7 +333,7 @@ def exportVectorLayer(layer, supported=None):
else:
isASCII = True
try:
str(layer.source()).decode('ascii')
str(layer.source())
except UnicodeEncodeError:
isASCII = False
if not os.path.splitext(layer.source())[1].lower() in supported or not isASCII:

0 comments on commit d5698be

Please sign in to comment.
You can’t perform that action at this time.