summaryrefslogtreecommitdiffstats
path: root/scene/gui/spin_box.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scene/gui/spin_box.cpp')
-rw-r--r--scene/gui/spin_box.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/spin_box.cpp b/scene/gui/spin_box.cpp
index 4f4754add5..7cb54f24ea 100644
--- a/scene/gui/spin_box.cpp
+++ b/scene/gui/spin_box.cpp
@@ -54,7 +54,7 @@ void SpinBox::_update_text() {
}
}
- line_edit->set_text(value);
+ line_edit->set_text_with_selection(value);
}
void SpinBox::_text_submitted(const String &p_string) {