Skip to content

Commit

Permalink
[processing] Fix negative distance value wrongly prohibited for multi…
Browse files Browse the repository at this point in the history
… ring buffer (constant)
  • Loading branch information
nirvn committed Nov 26, 2018
1 parent 0e76099 commit 572664c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ void QgsMultiRingConstantBufferAlgorithm::initParameters( const QVariantMap & )
addParameter( rings.release() );

std::unique_ptr< QgsProcessingParameterDistance > distance = qgis::make_unique< QgsProcessingParameterDistance >( QStringLiteral( "DISTANCE" ),
QObject::tr( "Distance between rings" ), 1, QStringLiteral( "INPUT" ), false, 0 );
QObject::tr( "Distance between rings" ), 1, QStringLiteral( "INPUT" ), false );
distance->setIsDynamic( true );
distance->setDynamicPropertyDefinition( QgsPropertyDefinition( QStringLiteral( "DISTANCE" ), QObject::tr( "Distance between rings" ), QgsPropertyDefinition::DoublePositive ) );
distance->setDynamicLayerParameterName( QStringLiteral( "INPUT" ) );
Expand Down

0 comments on commit 572664c

Please sign in to comment.