mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-21 14:50:44 +01:00
[apps] Avoid infinite value in editable table
Change-Id: I8ebbf99c244e7b7008c788aec8eed71b9ae20580
This commit is contained in:
@@ -18,7 +18,7 @@ bool EditableCellTableViewController::textFieldDidFinishEditing(TextField * text
|
||||
AppsContainer * appsContainer = ((TextFieldDelegateApp *)app())->container();
|
||||
Context * globalContext = appsContainer->globalContext();
|
||||
float floatBody = Expression::parse(text)->approximate(*globalContext);
|
||||
if (isnan(floatBody)) {
|
||||
if (isnan(floatBody) || isinf(floatBody)) {
|
||||
app()->displayWarning(I18n::Message::UndefinedValue);
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user