Skip to content
Permalink
Browse files
use combinefield instead of append
  • Loading branch information
roya0045 authored and nyalldawson committed Dec 23, 2021
1 parent 4437bcd commit 96ad33f630135220026d26ba1e7641f8a25ffb9f
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/analysis/processing/qgsalgorithmarraytranslatedfeatures.cpp
@@ -211,9 +211,9 @@ QgsWkbTypes::Type QgsArrayTranslatedFeaturesAlgorithm::outputWkbType( QgsWkbType

QgsFields QgsArrayTranslatedFeaturesAlgorithm::outputFields( const QgsFields &inputFields ) const
{
QgsFields output = inputFields;
QgsFields output;
output.append( QgsField( QStringLiteral( "instance" ), QVariant::Int ) );
return output;
return QgsProcessingUtils::combineFields( inputFields, output );
}

QgsFeatureSink::SinkFlags QgsArrayTranslatedFeaturesAlgorithm::sinkFlags() const

0 comments on commit 96ad33f

Please sign in to comment.