summaryrefslogtreecommitdiffstats
path: root/scene/gui
diff options
context:
space:
mode:
authorThaddeus Crews <repiteo@outlook.com>2024-11-12 12:13:19 -0600
committerThaddeus Crews <repiteo@outlook.com>2024-11-12 12:13:19 -0600
commitcd66343c709a89db73a53fde71265edb54b88f03 (patch)
tree460c55ce8f18417d2346faed13991dd1a392be43 /scene/gui
parent3c3303e0a4974ad1793e6f6c9c79f26b1d167d92 (diff)
parent5d168a38509c076886874b923a51071bc8e25357 (diff)
downloadredot-engine-cd66343c709a89db73a53fde71265edb54b88f03.tar.gz
Merge pull request #98543 from rune-scape/code-edit-margin
CodeEdit: Fix line number margin
Diffstat (limited to 'scene/gui')
-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 9d7e2496a2..89f1564775 100644
--- a/scene/gui/code_edit.cpp
+++ b/scene/gui/code_edit.cpp
@@ -1498,9 +1498,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);