Skip to content

Commit

Permalink
[processing] Fix wrong label description for the centroid alg's all p…
Browse files Browse the repository at this point in the history
…arts parameter

(fixes #32940)
  • Loading branch information
nirvn authored and nyalldawson committed Nov 20, 2019
1 parent 48ab44c commit 657a8e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/analysis/processing/qgsalgorithmcentroid.cpp
Expand Up @@ -65,10 +65,10 @@ void QgsCentroidAlgorithm::initParameters( const QVariantMap & )
{
std::unique_ptr< QgsProcessingParameterBoolean> allParts = qgis::make_unique< QgsProcessingParameterBoolean >(
QStringLiteral( "ALL_PARTS" ),
QObject::tr( "Create point on surface for each part" ),
QObject::tr( "Create centroid for each part" ),
false );
allParts->setIsDynamic( true );
allParts->setDynamicPropertyDefinition( QgsPropertyDefinition( QStringLiteral( "All parts" ), QObject::tr( "Create point on surface for each part" ), QgsPropertyDefinition::Boolean ) );
allParts->setDynamicPropertyDefinition( QgsPropertyDefinition( QStringLiteral( "All parts" ), QObject::tr( "Create centroid for each part" ), QgsPropertyDefinition::Boolean ) );
allParts->setDynamicLayerParameterName( QStringLiteral( "INPUT" ) );
addParameter( allParts.release() );
}
Expand Down

0 comments on commit 657a8e0

Please sign in to comment.