From c4b78bee45015fc3d168ea005bcad6a40ecf427c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filiph=20Sandstr=C3=B6m?= Date: Sat, 1 Jan 2022 19:32:41 +0100 Subject: [PATCH] LibGfx: Remove VERIFY in draw_rect_with_thickness draw_line with thickness already supports scaling so that verify isn't needed anymore. This fixes a scaling chrash introduced in 8a1d77f. --- Userland/Libraries/LibGfx/Painter.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/Userland/Libraries/LibGfx/Painter.cpp b/Userland/Libraries/LibGfx/Painter.cpp index cdf399c5e5..d1d131b2fa 100644 --- a/Userland/Libraries/LibGfx/Painter.cpp +++ b/Userland/Libraries/LibGfx/Painter.cpp @@ -593,8 +593,6 @@ void Painter::draw_rect(IntRect const& a_rect, Color color, bool rough) void Painter::draw_rect_with_thickness(IntRect const& rect, Color color, int thickness) { - VERIFY(scale() == 1); // FIXME: Add scaling support. - if (thickness <= 0) return;