Code style improvements to text_edit and related
This commit is contained in:
parent
61630d4e1e
commit
f587a21899
6 changed files with 107 additions and 126 deletions
|
|
@ -63,7 +63,7 @@ void SpinBox::_text_submitted(const String &p_string) {
|
|||
expr.instantiate();
|
||||
|
||||
String num = TS->parse_number(p_string);
|
||||
// Ignore the prefix and suffix in the expression
|
||||
// Ignore the prefix and suffix in the expression.
|
||||
Error err = expr->parse(num.trim_prefix(prefix + " ").trim_suffix(" " + suffix));
|
||||
if (err != OK) {
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue