summaryrefslogtreecommitdiff
path: root/editor/editor_spin_slider.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-07-18 09:58:19 +0200
committerGitHub <noreply@github.com>2021-07-18 09:58:19 +0200
commitb76dfde329592ecfd6f6b952082ae21859039e67 (patch)
tree719a25f36fb469e7e5e54b22fd29533fdd950a8a /editor/editor_spin_slider.cpp
parent35dc0db2968a3502822d7bebedbafbee39a4794b (diff)
parent110236f7617cb0b909aa0444f657344497cdaf41 (diff)
Merge pull request #50573 from KoBeWi/editor_spin_crasher
Fix crash in EditorSpinSlider
Diffstat (limited to 'editor/editor_spin_slider.cpp')
-rw-r--r--editor/editor_spin_slider.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/editor/editor_spin_slider.cpp b/editor/editor_spin_slider.cpp
index 247eaab9f8..436d67b882 100644
--- a/editor/editor_spin_slider.cpp
+++ b/editor/editor_spin_slider.cpp
@@ -389,6 +389,11 @@ void EditorSpinSlider::_notification(int p_what) {
}
}
+LineEdit *EditorSpinSlider::get_line_edit() {
+ _ensure_input_popup();
+ return value_input;
+}
+
Size2 EditorSpinSlider::get_minimum_size() const {
Ref<StyleBox> sb = get_theme_stylebox("normal", "LineEdit");
Ref<Font> font = get_theme_font("font", "LineEdit");