Skip to content

Commit

Permalink
Fix CodeEdit guidelines position.
Browse files Browse the repository at this point in the history
  • Loading branch information
bruvzg committed Jan 14, 2022
1 parent f60c81a commit 85424af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scene/gui/code_edit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ void CodeEdit::_notification(int p_what) {
if (line_length_guideline_columns.size() > 0) {
const int xmargin_beg = style_normal->get_margin(SIDE_LEFT) + get_total_gutter_width();
const int xmargin_end = size.width - style_normal->get_margin(SIDE_RIGHT) - (is_drawing_minimap() ? get_minimap_width() : 0);
const int char_size = (int)font->get_char_size('0', 0, font_size).width;
const int char_size = Math::round(font->get_char_size('0', 0, font_size).width);

for (int i = 0; i < line_length_guideline_columns.size(); i++) {
const int xoffset = xmargin_beg + char_size * (int)line_length_guideline_columns[i] - get_h_scroll();
Expand Down

0 comments on commit 85424af

Please sign in to comment.