From 8b5d2c710b3e7eef47bbed5097d01fd9d6a232c1 Mon Sep 17 00:00:00 2001 From: Sam Atkins Date: Mon, 5 Feb 2024 16:27:09 +0000 Subject: [PATCH] HexEditor: Make border of offset area straight down Subtracting 1 from both axes causes a kink in the line, because the start point isn't also translated. The clip rect prevents us from painting too far down, so we can just remove the translated() call. --- Userland/Applications/HexEditor/HexEditor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Applications/HexEditor/HexEditor.cpp b/Userland/Applications/HexEditor/HexEditor.cpp index 7572b14416..5fe4c803a9 100644 --- a/Userland/Applications/HexEditor/HexEditor.cpp +++ b/Userland/Applications/HexEditor/HexEditor.cpp @@ -594,7 +594,7 @@ void HexEditor::paint_event(GUI::PaintEvent& event) height() - height_occupied_by_horizontal_scrollbar() //(total_rows() * line_height()) + 5 }; painter.fill_rect(offset_clip_rect, palette().ruler()); - painter.draw_line(offset_clip_rect.top_right(), offset_clip_rect.bottom_right().translated(-1), palette().ruler_border()); + painter.draw_line(offset_clip_rect.top_right(), offset_clip_rect.bottom_right(), palette().ruler_border()); auto margin_and_hex_width = static_cast(offset_margin_width() + m_bytes_per_row * cell_width() + 3 * m_padding); painter.draw_line({ margin_and_hex_width, 0 },