summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorGilles Roudière <gilles.roudiere@gmail.com>2021-02-16 10:51:17 +0100
committerGilles Roudière <gilles.roudiere@gmail.com>2021-02-16 10:51:17 +0100
commit737dd5ee8ce95012908ebe423df6514fbc021499 (patch)
tree57bf221b307496d4c2790b651a87aad54c9e150d /scene
parent866cad9767222e70f802b24e930b606e8f0bef62 (diff)
Fix minimum_character_width in LineEdit
Diffstat (limited to 'scene')
-rw-r--r--scene/gui/line_edit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/line_edit.cpp b/scene/gui/line_edit.cpp
index da5389dedf..5bd9259a64 100644
--- a/scene/gui/line_edit.cpp
+++ b/scene/gui/line_edit.cpp
@@ -1587,7 +1587,7 @@ Size2 LineEdit::get_minimum_size() const {
// Minimum size of text.
int em_space_size = font->get_char_size('M', 0, font_size).x;
- min_size.width = get_theme_constant("minimum_character_width'") * em_space_size;
+ min_size.width = get_theme_constant("minimum_character_width") * em_space_size;
if (expand_to_text_length) {
// Add a space because some fonts are too exact, and because cursor needs a bit more when at the end.