diff options
author | neikeq <ignalfonsore@gmail.com> | 2015-12-07 20:31:21 +0100 |
---|---|---|
committer | neikeq <ignalfonsore@gmail.com> | 2015-12-07 20:31:21 +0100 |
commit | f499fb6fcf4bee9a7d4b63695a4eaacea02e4ee7 (patch) | |
tree | e89962a4db1644d6e9e6369a579ce38a1d255598 /scene | |
parent | 98c54827ae4696b0d9a4c56a2879ac294a79fe11 (diff) |
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; |