Skip to content

Commit

Permalink
[I18-117] Add a case to NumberBox.getNumericValue(String)
Browse files Browse the repository at this point in the history
This fixes a bug where a listener was not fired when scientific notation
was entered into a NumberBox.

Signed-off-by: James Mudd <james.mudd@diamond.ac.uk>
  • Loading branch information
jamesmudd committed Feb 1, 2018
1 parent 3834a85 commit cedc041
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -651,6 +651,11 @@ public double getNumericValue(String txt) {
}
}
}
try {
return Double.valueOf(txt);
} catch (java.lang.NumberFormatException ne) {
// Fall through.
}
return Double.NaN;
}

Expand Down

0 comments on commit cedc041

Please sign in to comment.