diff options
author | Shiqing <shiqing-thu18@yandex.com> | 2019-07-10 17:29:43 +0800 |
---|---|---|
committer | Shiqing <shiqing-thu18@yandex.com> | 2019-07-10 17:29:43 +0800 |
commit | 94d542042ebb22c8120883b8403eade2110050b9 (patch) | |
tree | 7229337fbb6540f68faeab63fceeed5fe4a6f0fe /scene/gui | |
parent | 68081b3f6e57d4bda7e93ce2dd319fb564d347b8 (diff) |
Fix incorrect X position of line length guideline
Diffstat (limited to 'scene/gui')
-rw-r--r-- | scene/gui/text_edit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp index 7a937843ab..ff0c723141 100644 --- a/scene/gui/text_edit.cpp +++ b/scene/gui/text_edit.cpp @@ -683,7 +683,7 @@ void TextEdit::_notification(int p_what) { } if (line_length_guideline) { - int x = xmargin_beg + cache.font->get_char_size('0').width * line_length_guideline_col - cursor.x_ofs; + int x = xmargin_beg + (int)cache.font->get_char_size('0').width * line_length_guideline_col - cursor.x_ofs; if (x > xmargin_beg && x < xmargin_end) { VisualServer::get_singleton()->canvas_item_add_line(ci, Point2(x, 0), Point2(x, size.height), cache.line_length_guideline_color); } |