If spinbox text can't be parsed use last updated text
This commit is contained in:
parent
2e7fc81315
commit
76a6650fd9
1 changed files with 1 additions and 0 deletions
|
@ -83,6 +83,7 @@ void SpinBox::_text_submitted(const String &p_string) {
|
|||
|
||||
err = expr->parse(text);
|
||||
if (err != OK) {
|
||||
_update_text();
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue