summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2015-12-07 20:39:43 +0100
committerRémi Verschelde <remi@verschelde.fr>2015-12-07 20:39:43 +0100
commitc667bde1834c24e6247145010a6c70b955c834c6 (patch)
tree7f13cd33e2bdfab79e825503d4ed50ccd80b49dd /scene
parent5e2f327d4beadf98fa9f2af30882e18fb817249a (diff)
parentf499fb6fcf4bee9a7d4b63695a4eaacea02e4ee7 (diff)
Merge pull request #3007 from neikeq/fix_line_edit
Fix LineEdit cursor
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 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;