#222 closed defect (released)
decimal comma/point not handled correctly (again?) in costMultiplier
Reported by: | Henri | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | WarFoundry 0.1 |
Component: | WarFoundry-GUI-WinForms | Version: | Trunk |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
There seems to be another problem with handling decimal points or commas.
With the system separator as "," it won't load the datafile with a costMultiplier of "0,6". If the costMultiplier is "0.6" the datafile loads but then stops after creating the army in WF with a message that says approx. "the Costmultiplier is not a valid decimal number".
\IBBoard.WarFoundry.GUI.WinForms\bin\Release\data\Orks -v2.race: Problem validating against schema for WarFoundry data: The 'costMultiplier' attribute is invalid - The value '0,6' is invalid according to its datatype 'http://ibboard.co.uk/warfoundry/core:nonNegativeDouble' - The string '0,6' is not a valid Double value.
INFO [13:11:43]: FrmMain.Main() - Line: 0 - Closing WarFoundry WinForms
Change History (5)
comment:1 Changed 10 years ago by
comment:2 Changed 10 years ago by
Status: | new → confirmed |
---|
Curses! Hopefully it'll be a central point I can change again (or code that should be using the central point but isn't).
comment:3 Changed 10 years ago by
Resolution: | → fixed |
---|---|
Status: | confirmed → closed |
(In r423) Fixes #222: decimal comma/point not handled correctly (again?) in costMultiplier
- Replace two "type.Parse" calls with XmlTools calls
All decimals in WarFoundry should use the decimal point (or "period" to Americans) rather than the decimal comma because that's what XML uses in its default type definitions
comment:5 Changed 10 years ago by
Resolution: | fixed → released |
---|
Mark fix as released under a previous version
Seems that having other point values with a "," won't work either.