Skip to content

Commit adc7cf0

Browse files
committedApr 26, 2017
Add context argument to vector.features
1 parent f3cfb8b commit adc7cf0

File tree

109 files changed

+174
-173
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

109 files changed

+174
-173
lines changed
 

‎python/plugins/processing/algs/exampleprovider/ExampleAlgorithm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def processAlgorithm(self, context, feedback):
113113
# selection that might exist in layer and the configuration that
114114
# indicates should algorithm use only selected features or all
115115
# of them
116-
features = vector.features(vectorLayer)
116+
features = vector.features(vectorLayer, context)
117117
for f in features:
118118
writer.addFeature(f)
119119

‎python/plugins/processing/algs/qgis/AddTableField.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def processAlgorithm(self, context, feedback):
9999
writer = output.getVectorWriter(fields, layer.wkbType(),
100100
layer.crs())
101101
outFeat = QgsFeature()
102-
features = vector.features(layer)
102+
features = vector.features(layer, context)
103103
total = 100.0 / len(features)
104104
for current, feat in enumerate(features):
105105
feedback.setProgress(int(current * total))

0 commit comments

Comments
 (0)
Please sign in to comment.