Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[processing] Fix type resolving in python field calculator
- Loading branch information
Showing
with
2 additions
and
2 deletions.
-
+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, |
|
|