Skip to content
Permalink
Browse files

[processing] Fix negative distance value wrongly prohibited for multi…

… ring buffer (constant)
  • Loading branch information
nirvn committed Nov 29, 2018
1 parent 2a0be2f commit 49489dbe3b274cc3c153a7ff1959941ab45cdcba
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/analysis/processing/qgsalgorithmmultiringconstantbuffer.cpp
@@ -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" ) );

0 comments on commit 49489db

Please sign in to comment.
You can’t perform that action at this time.