summaryrefslogtreecommitdiff
path: root/scene/gui
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-02-16 11:11:03 +0100
committerGitHub <noreply@github.com>2021-02-16 11:11:03 +0100
commitba8b95a2a18f56daa0ec4f6ab1bca3dde4e98359 (patch)
tree101dc3fa55465d6e3654cf5aee9aac41c828af21 /scene/gui
parent7b2bad95710448e0410ecc77c9d96e64af454b5e (diff)
parent737dd5ee8ce95012908ebe423df6514fbc021499 (diff)
Merge pull request #46088 from groud/fix_line_edit
Fix minimum_character_width in LineEdit
Diffstat (limited to 'scene/gui')
-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.