Skip to content
Permalink
Browse files

Handle invalid step size

in range widgets in combination with NULL values.

Fix #18583 https://issues.qgis.org/issues/18583
  • Loading branch information
m-kuhn committed Jul 3, 2018
1 parent 7e7faad commit f3682be92a90b2f519adca66607f49cb8927b483
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/gui/editorwidgets/qgsrangewidgetwrapper.cpp
@@ -138,7 +138,7 @@ void QgsRangeWidgetWrapper::initWidget( QWidget *editor )
int minval = min.toInt();
if ( allowNull )
{
int stepval = step.toInt();
int stepval = step.isValid() ? step.toInt() : 1;
minval -= stepval;
mIntSpinBox->setValue( minval );
mIntSpinBox->setSpecialValueText( QgsApplication::nullRepresentation() );

0 comments on commit f3682be

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