summaryrefslogtreecommitdiffstats
path: root/parse-xml.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-01-02 09:12:32 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-01-02 09:12:32 -0800
commit5511a0e14efdb96c7622adf11185ea741cdb5226 (patch)
treefd35dded09a1ffcf09d561e02d23b565ca01e5ff /parse-xml.c
parent2abd06e5fd61570e13c1b14eb0a4f6804743f6a1 (diff)
downloadsubsurface-5511a0e14efdb96c7622adf11185ea741cdb5226.tar.gz
Ignore units when entering values for equipment
Note that this is IMHO the wrong fix. Because we shouldn't just ignore the units, we should do correct conversions. Before this patch, if the user is in metric mode and then types in 4.5kg or 10lbs for a weight, Subsurface ignores the entry and throws it away. Very much not the expected behavior. With this patch Subsurface will take the value, but ignore the unit and assume that the user meant kg (since it's in metric mode). Still not really the expected behavior for 10lbs (which is now 10kg), but if the user typed 4.5kg (which admittedly is much more likely), then with this change Subsurface will do the right thing. Fixes #395 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'parse-xml.c')
0 files changed, 0 insertions, 0 deletions