Skip to content
Permalink
Browse files
use combinefield instead of append
  • Loading branch information
roya0045 authored and nyalldawson committed Dec 22, 2021
1 parent 93f545d commit 511343411e81c140de1e8f9841e52d678c095122
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 5113434

Please sign in to comment.