Bug report #18102

Can only input integer value in the vertex editor

Added by Loïc BARTOLETTI almost 7 years ago. Updated about 6 years ago.

Status:Closed
Priority:Normal
Assignee:Alessandro Pasotti
Category:Digitising
Affected QGIS version:master Regression?:Yes
Operating System: Easy fix?:No
Pull Request or Patch supplied:Yes Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:25998

Description

With a FR locale, it is impossible to enter coordinates with a point as a decimal separator (well). But when you enter a value with a decimal, using the comma (FR numeric), it sets the cell to 0. It is only possible to enter integers.
It is also possible to enter spaces but this also sets the cell to 0.

Associated revisions

Revision fc661725
Added by Alessandro Pasotti about 6 years ago

[bugfix] Fixes float input in advanced digitizing ...

... with not-dot locales

Fixes #18102 - Can only input integer value in the vertex editor

Precision is hardcoded to 6 decimal places, we can either increase it
or make it configurable.

History

#1 Updated by Dominique Lyszczarz over 6 years ago

Confirmed in this french message board : https://georezo.net/forum/viewtopic.php?pid=309247#p309247

#2 Updated by Harrissou Santanna over 6 years ago

  • Regression? changed from No to Yes

#3 Updated by Harrissou Santanna about 6 years ago

  • Status changed from Open to Feedback

Seems the comma is working now on master!

#4 Updated by Alessandro Pasotti about 6 years ago

  • Assignee changed from Martin Dobias to Alessandro Pasotti

Let me know if this is still an issue in current master, and in which O.S. (I've seen this problem before but only on windows).

#5 Updated by Loïc BARTOLETTI about 6 years ago

Tested on Windows, it's works.
But For example i have "1234,456". editing the node show me "1234.456" if I change to "1234.789" doesn't works. I need to remove the dot to a comma "1234,789". A comma is normal, but the editor should be already with a comma not a dot.

Thanks

#6 Updated by Alessandro Pasotti about 6 years ago

Thanks for checking, I'll have a look. What is your operating system?

#7 Updated by Loïc BARTOLETTI about 6 years ago

Tested on windows 10 and FreeBSD 12

#8 Updated by Alessandro Pasotti about 6 years ago

Fixed, but I'd like to get a decent precision: do you know if is there a setting for precision? How many decimal places should we show here?

#9 Updated by Alessandro Pasotti about 6 years ago

  • Status changed from Feedback to In Progress

#10 Updated by Alessandro Pasotti about 6 years ago

  • Pull Request or Patch supplied changed from No to Yes

#11 Updated by Anonymous about 6 years ago

  • % Done changed from 0 to 100
  • Status changed from In Progress to Closed

Also available in: Atom PDF