Skip to content
Permalink
Browse files

[processing] Log an error when a numeric parameter has min value >= m…

…ax value

Refs #19076
  • Loading branch information
nyalldawson committed May 31, 2018
1 parent 32792d3 commit 1c684456aa2d4957eb01d885ea4986448e3f8b09
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/core/processing/qgsprocessingparameters.cpp
@@ -2038,7 +2038,10 @@ QgsProcessingParameterNumber::QgsProcessingParameterNumber( const QString &name,
, mMax( maxValue )
, mDataType( type )
{

if ( mMin >= mMax )
{
QgsMessageLog::logMessage( QObject::tr( "Invalid number parameter \"%1\": min value %2 is >= max value %3!" ).arg( name ).arg( mMin ).arg( mMax ), QObject::tr( "Processing" ) );
}
}

QgsProcessingParameterDefinition *QgsProcessingParameterNumber::clone() const

0 comments on commit 1c68445

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