Skip to content

Commit

Permalink
[processing] Fix type resolving in python field calculator
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Sep 19, 2017
1 parent ecd2229 commit 7dfa133
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/plugins/processing/algs/qgis/FieldPyculator.py
Expand Up @@ -97,8 +97,8 @@ def processAlgorithm(self, parameters, context, feedback):
globalExpression = self.parameterAsString(parameters, self.GLOBAL, context)

fields = source.fields()
fields.append(QgsField(field_name, self.TYPES[field_type], '',
width, precision))
field = QgsField(field_name, field_type, '', width, precision)
fields.append(field)
new_ns = {}

(sink, dest_id) = self.parameterAsSink(parameters, self.OUTPUT, context,
Expand Down

0 comments on commit 7dfa133

Please sign in to comment.