summaryrefslogtreecommitdiff
path: root/Userland/Libraries
diff options
context:
space:
mode:
authorKarol Kosek <krkk@serenityos.org>2023-05-28 18:35:37 +0200
committerAndreas Kling <kling@serenityos.org>2023-05-28 21:12:19 +0200
commitdfde972bafb7ba8f2f81b98faa904d447dd754a7 (patch)
tree99731c220d001d0627a74e54f9afc311c334aa34 /Userland/Libraries
parent94fd17a4678f977218c23f0e9a23897952c1597b (diff)
downloadserenity-dfde972bafb7ba8f2f81b98faa904d447dd754a7.zip
LibGUI: Fix crooked close button on active tabs in the TabWidget
This is a regression from f391ccfe53e18395842d0d6b743d08d23b9108e5. The bug didn't appear on inactive tabs, as they already use `translated(1, -2)`.
Diffstat (limited to 'Userland/Libraries')
-rw-r--r--Userland/Libraries/LibGUI/TabWidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibGUI/TabWidget.cpp b/Userland/Libraries/LibGUI/TabWidget.cpp
index e6984d605f..cb16676ff3 100644
--- a/Userland/Libraries/LibGUI/TabWidget.cpp
+++ b/Userland/Libraries/LibGUI/TabWidget.cpp
@@ -366,7 +366,7 @@ void TabWidget::paint_event(PaintEvent& event)
painter.draw_line(icon_rect.top_right().moved_left(1), icon_rect.bottom_left().moved_up(1), palette().button_text());
} else {
painter.draw_line(icon_rect.top_left().moved_right(1), icon_rect.bottom_right().translated(-2, -2), palette().button_text());
- painter.draw_line(icon_rect.top_right().moved_left(2), icon_rect.bottom_left().moved_right(1), palette().button_text());
+ painter.draw_line(icon_rect.top_right().moved_left(2), icon_rect.bottom_left().translated(1, -2), palette().button_text());
painter.draw_line(icon_rect.bottom_left(), icon_rect.bottom_right().moved_left(1), palette().button_text(), 1, Painter::LineStyle::Dotted);
}
}