Skip to content

Commit

Permalink
Fix #47244: respect minimum value in optional numeric parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
ismailsunni authored and nyalldawson committed Feb 14, 2022
1 parent b0a83e9 commit 8584983
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/processing/qgsprocessingwidgetwrapperimpl.cpp
Expand Up @@ -828,7 +828,7 @@ QWidget *QgsProcessingNumericWidgetWrapper::createWidget()
if ( mDoubleSpinBox )
{
mDoubleSpinBox->setShowClearButton( true );
const double min = mDoubleSpinBox->minimum() - 1;
const double min = mDoubleSpinBox->minimum() - mDoubleSpinBox->singleStep();
mDoubleSpinBox->setMinimum( min );
mDoubleSpinBox->setValue( min );
}
Expand Down

0 comments on commit 8584983

Please sign in to comment.