From 9e57f8d18308d677c12d7ca3e6f83c25ad696539 Mon Sep 17 00:00:00 2001 From: MacDue Date: Fri, 16 Jun 2023 19:02:00 +0100 Subject: [PATCH] LibGfx: Invalidate path bounding boxes when invalidating split lines If the lines are no longer valid then the bounding box (which is derived from the lines) is also invalid. --- Userland/Libraries/LibGfx/Path.h | 1 + 1 file changed, 1 insertion(+) diff --git a/Userland/Libraries/LibGfx/Path.h b/Userland/Libraries/LibGfx/Path.h index d4cf947f00..e23c9348fa 100644 --- a/Userland/Libraries/LibGfx/Path.h +++ b/Userland/Libraries/LibGfx/Path.h @@ -253,6 +253,7 @@ public: private: void invalidate_split_lines() { + m_bounding_box.clear(); m_split_lines.clear(); } void segmentize_path();