Skip to content

Commit

Permalink
Fix parameter name
Browse files Browse the repository at this point in the history
  • Loading branch information
uclaros authored and nyalldawson committed Jan 18, 2021
1 parent 2242c1f commit 6d2e635
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/analysis/processing/qgsalgorithmpointstopaths.cpp
Expand Up @@ -59,7 +59,7 @@ void QgsPointsToPathsAlgorithm::initAlgorithm( const QVariantMap & )
{
addParameter( new QgsProcessingParameterFeatureSource( QStringLiteral( "INPUT" ),
QObject::tr( "Input layer" ), QList< int >() << QgsProcessing::TypeVectorPoint ) );
addParameter( new QgsProcessingParameterBoolean( QStringLiteral( "CLOSE_PATHS" ),
addParameter( new QgsProcessingParameterBoolean( QStringLiteral( "CLOSE_PATH" ),
QObject::tr( "Create closed paths" ), false, true ) );
addParameter( new QgsProcessingParameterExpression( QStringLiteral( "ORDER_EXPRESSION" ),
QObject::tr( "Order expression" ), QVariant(), QStringLiteral( "INPUT" ), true ) );
Expand Down Expand Up @@ -97,7 +97,7 @@ QVariantMap QgsPointsToPathsAlgorithm::processAlgorithm( const QVariantMap &para
if ( !source )
throw QgsProcessingException( invalidSourceError( parameters, QStringLiteral( "INPUT" ) ) );

const bool closePaths = parameterAsBool( parameters, QStringLiteral( "CLOSE_PATHS" ), context );
const bool closePaths = parameterAsBool( parameters, QStringLiteral( "CLOSE_PATH" ), context );

QString orderExpressionString = parameterAsString( parameters, QStringLiteral( "ORDER_EXPRESSION" ), context );
QString orderFieldString = parameterAsString( parameters, QStringLiteral( "ORDER_FIELD" ), context );
Expand Down

0 comments on commit 6d2e635

Please sign in to comment.