Bug report #18297
Minimum value not accepted in range widget with "allow null"
|Affected QGIS version:||3.0.0||Regression?:||No|
|Operating System:||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:||fixed/implemented|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||26188|
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
Fix int range widget minimum value
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.