Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/DoubleRangePanel.java @ 571:6ebe845a9d37
#117 Improved double value parsing in DoubleArrayPanel and DoubleRangePanel.
flys-client/trunk@2121 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Wed, 15 Jun 2011 08:28:54 +0000 |
parents | 9f16ac843dda |
children | 42512fce9b1b |
comparison
equal
deleted
inserted
replaced
570:85d7cc0f2bab | 571:6ebe845a9d37 |
---|---|
176 * @return the double value of <i>value</i>. | 176 * @return the double value of <i>value</i>. |
177 */ | 177 */ |
178 protected double getDouble(String value) { | 178 protected double getDouble(String value) { |
179 NumberFormat f = NumberFormat.getDecimalFormat(); | 179 NumberFormat f = NumberFormat.getDecimalFormat(); |
180 | 180 |
181 return f.parse(value); | 181 String[] splitted = value.split(" "); |
182 | |
183 return f.parse(splitted[0]); | |
182 } | 184 } |
183 | 185 |
184 | 186 |
185 /** | 187 /** |
186 * Returns the start value. | 188 * Returns the start value. |