Bug report #12421

QGIS form : range with decimal > rounding by saving project ?

Added by Antoine SIG over 9 years ago. Updated over 9 years ago.

Status:Closed
Priority:Normal
Assignee:-
Category:Forms
Affected QGIS version:2.8.1 Regression?:No
Operating System:Windows Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:20593

Description

Hey,
Decimal on range field (form customizing) is not save with project.
There is rounding.
Example :
0,2 become 0
On *.qpj : <widgetv2config AllowNull="1" fieldEditable="0" Step="0" Style="SpinBox" labelOnTop="0" Min="0" Max="5"/>
(fieldEditable is always integer)
No alternative ?
Thanks

Associated revisions

Revision 91e44eaf
Added by Jürgen Fischer over 9 years ago

edit widgets: don't truncate double ranges and also support them in sliders and
dials (fixes #12421)

Revision 2bd5b893
Added by Jürgen Fischer over 9 years ago

edit widget: fix ranges (followup 91e44eaf; fixes #12421)

Revision c6996acd
Added by Jürgen Fischer over 9 years ago

edit widget: fix ranges (followup 91e44eaf; fixes #12421)

Revision 1bf1b33a
Added by Jürgen Fischer over 9 years ago

edit widgets: don't truncate double ranges and also support them in sliders and
dials (fixes #12421)

(cherry picked from commit 91e44ea and c6996ac)

History

#1 Updated by Giovanni Manghi over 9 years ago

  • Target version changed from Version 2.8.1 to Version 2.8.2

#2 Updated by Giovanni Manghi over 9 years ago

  • Target version changed from Version 2.8.2 to Version 2.10

#3 Updated by Jürgen Fischer over 9 years ago

  • Status changed from Open to Closed

#4 Updated by Stefan Blumentrath over 9 years ago

  • Status changed from Closed to Reopened

Hi, I just tried the stable release and the problem does not seem to be fully fixed.
Now it is no longer possible to specify a decimal in the step parameter (also for double or real or similar numeric fields)...
I can only enter numbers in the "step" parameter, no points or commas...

#5 Updated by Jürgen Fischer over 9 years ago

  • Status changed from Reopened to Closed

Also available in: Atom PDF