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 5, 2018
1 parent d6da802 commit 528aee07b3885eeb27e9eb2281a62f09e09b83a9
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 528aee0

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