Skip to content
Permalink
Browse files

[processing] Fix type resolving in python field calculator

  • Loading branch information
m-kuhn committed Sep 19, 2017
1 parent ecd2229 commit 7dfa1330b869aa02e2a04db6c4eaeeeaf08bd1b8
Showing with 2 additions and 2 deletions.
  1. +2 −2 python/plugins/processing/algs/qgis/FieldPyculator.py
@@ -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,

0 comments on commit 7dfa133

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