summaryrefslogtreecommitdiffstats
path: root/scene/gui/code_edit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scene/gui/code_edit.cpp')
-rw-r--r--scene/gui/code_edit.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/gui/code_edit.cpp b/scene/gui/code_edit.cpp
index da59dac3b9..090bdee26f 100644
--- a/scene/gui/code_edit.cpp
+++ b/scene/gui/code_edit.cpp
@@ -1500,9 +1500,9 @@ void CodeEdit::_line_number_draw_callback(int p_line, int p_gutter, const Rect2
ofs.y += TS->shaped_text_get_ascent(text_rid);
if (rtl) {
- ofs.x = p_region.position.x;
- } else {
ofs.x = p_region.get_end().x - text_size.width;
+ } else {
+ ofs.x = p_region.position.x;
}
Color number_color = get_line_gutter_item_color(p_line, line_number_gutter);