Skip to content

Commit

Permalink
521: PWIntegerText exception when delete content
Browse files Browse the repository at this point in the history
Empty string now equals to 0

Task-Url: #521
  • Loading branch information
wimjongman committed Sep 27, 2023
1 parent 3e1af50 commit 6c0bf6d
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,10 @@ public void check() {
* @see org.eclipse.nebula.widgets.opal.preferencewindow.widgets.PWText#convertValue()
*/
@Override
public Object convertValue() {
public Integer convertValue() {
if(text.getText().isEmpty()) {
return (Integer) 0;
}
return Integer.parseInt(text.getText());
}

Expand Down

0 comments on commit 6c0bf6d

Please sign in to comment.