Skip to content
Permalink
Browse files
use combinefield instead of append
  • Loading branch information
roya0045 authored and github-actions committed Dec 22, 2021
1 parent 4437bcd commit f93da8a7d25a1d10af2abb2075ec6ed77476d029
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 f93da8a

Please sign in to comment.