We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d6da802 commit 528aee0Copy full SHA for 528aee0
src/gui/editorwidgets/qgsrangewidgetwrapper.cpp
@@ -138,7 +138,7 @@ void QgsRangeWidgetWrapper::initWidget( QWidget *editor )
138
int minval = min.toInt();
139
if ( allowNull )
140
{
141
- int stepval = step.toInt();
+ int stepval = step.isValid() ? step.toInt() : 1;
142
minval -= stepval;
143
mIntSpinBox->setValue( minval );
144
mIntSpinBox->setSpecialValueText( QgsApplication::nullRepresentation() );
0 commit comments