What steps will reproduce the problem?
1. Build a table with PTIntegerEditor (or float)
2. while editing this filed remove letters until ""
3. Interger Parsing exeption is thrown
What is the expected output? What do you see instead?
-
What version of the product are you using? On what operating system?
V0.9.9e on win7
Please provide any additional information below.
In PTIntegerEditor:
...
public Object convertValue() {
return Integer.parseInt(this.text.getText());
...
a fix could be:
public Object convertValue() {
int ret = 0;
try{
ret = Integer.parseInt(this.text.getText());
}catch(NumberFormatException e){
ret = 0;
this.text.setText("0");
}
return ret;
}
Original issue reported on code.google.com by asoffice...@gmail.com on 11 Jul 2014 at 11:24
Original issue reported on code.google.com by
asoffice...@gmail.com
on 11 Jul 2014 at 11:24