Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Integer range widget with allowNull #6506

Merged
merged 4 commits into from Mar 2, 2018
Merged

Conversation

m-kuhn
Copy link
Member

@m-kuhn m-kuhn commented Mar 1, 2018

Steps to reproduce:

Take an integer field
Configure a range widget with * min 0 * max 10 * step 1 * allow null True

Try to enter a value of 0

Observed behavior:

NULL appears

Expected behavior:

0 appears

See https://issues.qgis.org/issues/18297

The int range widget so far assigned NULL to the minimum value when allowNull was activated. This made it impossible to enter the minimum value into a range widget.

This also fixes some signals which in case of a NULL value would emit a slightly-below-minimum value for double and int spinboxes.

Fix qgis#18297
@m-kuhn m-kuhn merged commit 0d20829 into qgis:master Mar 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant