Skip to content

Commit

Permalink
Wrong label in UI for "Create point for each part" on "Centroids" pro…
Browse files Browse the repository at this point in the history
…cessing algorithm #32940 - Backport to 3.4

#32940
  • Loading branch information
havatv authored and nyalldawson committed Nov 19, 2019
1 parent 3a71bc2 commit 9f02627
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 9f02627

Please sign in to comment.