Regional settings are ignored in the property editor
Bug #1365514 reported by
Stan
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Workcraft |
Fix Committed
|
Low
|
Danil Sokolov |
Bug Description
- when regional settings are set to have comma "," as a decimal separator, fractional numbers in properties cannot be entered (trying to enter 0,5 would give you 0,0 as a result)
- current workaround: regardless of settings, enter with "." as a separator.
Related branches
lp:~danilovesky/workcraft/trunk-bug-1365514
- Danil Sokolov: Approve
-
Diff: 37 lines (+20/-7)1 file modifiedWorkcraftCore/src/org/workcraft/gui/propertyeditor/DoubleProperty.java (+20/-7)
Changed in workcraft: | |
status: | New → Confirmed |
importance: | Undecided → Low |
assignee: | nobody → Danil Sokolov (danilovesky) |
milestone: | none → 3.0 |
tags: | added: ui |
summary: |
- incorrect behaviour with fractional numbers in properties with other - regional settings + Regional settings are ignored in the property editor |
Changed in workcraft: | |
status: | Confirmed → Fix Committed |
To post a comment you must log in.
A naive solution currently implemented is to replace "," to "." passing the string to Double.parseDouble.
A better solution may be based on NumberFormat.parse method.