Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/ManualPointsEditor.java @ 2461:4e81439ffa28
Fix flys/issue462
flys-client/trunk@4167 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Tue, 20 Mar 2012 10:09:14 +0000 |
parents | 2eec6d55fcfa |
children | cef4c624c68c |
comparison
equal
deleted
inserted
replaced
2460:5659b5e8c9a8 | 2461:4e81439ffa28 |
---|---|
192 } | 192 } |
193 }}; | 193 }}; |
194 | 194 |
195 CellEditValueParser cevp = new CellEditValueParser() { | 195 CellEditValueParser cevp = new CellEditValueParser() { |
196 public Object parse(Object value, ListGridRecord record, int rowNum, int colNum) { | 196 public Object parse(Object value, ListGridRecord record, int rowNum, int colNum) { |
197 if (value == null) | |
198 return null; | |
197 try { | 199 try { |
198 NumberFormat nf = NumberFormat.getDecimalFormat(); | 200 NumberFormat nf = NumberFormat.getDecimalFormat(); |
199 double d = nf.parse(value.toString()); | 201 double d = nf.parse(value.toString()); |
200 return (new Double(d)).toString(); | 202 return (new Double(d)).toString(); |
201 } | 203 } |