From f499fb6fcf4bee9a7d4b63695a4eaacea02e4ee7 Mon Sep 17 00:00:00 2001 From: neikeq Date: Mon, 7 Dec 2015 20:31:21 +0100 Subject: [PATCH] Fix LineEdit cursor --- scene/gui/line_edit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene/gui/line_edit.cpp b/scene/gui/line_edit.cpp index 18de8ed5683..10ba20a8339 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;