You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-28 16:07:14 +00:00
Fix LineEdit cursor
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user