diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2015-12-07 20:39:43 +0100 |
---|---|---|
committer | Rémi Verschelde <remi@verschelde.fr> | 2015-12-07 20:39:43 +0100 |
commit | c667bde1834c24e6247145010a6c70b955c834c6 (patch) | |
tree | 7f13cd33e2bdfab79e825503d4ed50ccd80b49dd /scene | |
parent | 5e2f327d4beadf98fa9f2af30882e18fb817249a (diff) | |
parent | f499fb6fcf4bee9a7d4b63695a4eaacea02e4ee7 (diff) |
Merge pull request #3007 from neikeq/fix_line_edit
Fix LineEdit cursor
Diffstat (limited to 'scene')
-rw-r--r-- | scene/gui/line_edit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/line_edit.cpp b/scene/gui/line_edit.cpp index 18de8ed568..10ba20a833 100644 --- a/scene/gui/line_edit.cpp +++ b/scene/gui/line_edit.cpp @@ -568,7 +568,7 @@ void LineEdit::set_cursor_at_pixel_pos(int p_x) { int char_w = 0; if (font != NULL) { - int char_w = font->get_char_size(text[ofs]).width; + char_w = font->get_char_size(text[ofs]).width; } pixel_ofs+=char_w; |