Fix LineEdit cursor
This commit is contained in:
parent
98c54827ae
commit
f499fb6fcf
1 changed files with 1 additions and 1 deletions
|
@ -568,7 +568,7 @@ void LineEdit::set_cursor_at_pixel_pos(int p_x) {
|
||||||
|
|
||||||
int char_w = 0;
|
int char_w = 0;
|
||||||
if (font != NULL) {
|
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;
|
pixel_ofs+=char_w;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue