From 6faaee2bc869854da4f6598e79c79c9a8b75efcb Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Mon, 27 Dec 2021 14:14:52 +0100 Subject: [PATCH] LibWeb: Fix copy/paste typo in CanvasRenderingContext2D::stroke_style() This returned the fill style, not the stroke style! --- Userland/Libraries/LibWeb/HTML/CanvasRenderingContext2D.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibWeb/HTML/CanvasRenderingContext2D.cpp b/Userland/Libraries/LibWeb/HTML/CanvasRenderingContext2D.cpp index e648d22ca0..57789ee1bf 100644 --- a/Userland/Libraries/LibWeb/HTML/CanvasRenderingContext2D.cpp +++ b/Userland/Libraries/LibWeb/HTML/CanvasRenderingContext2D.cpp @@ -63,7 +63,7 @@ void CanvasRenderingContext2D::set_stroke_style(String style) String CanvasRenderingContext2D::stroke_style() const { - return m_fill_style.to_string(); + return m_stroke_style.to_string(); } void CanvasRenderingContext2D::stroke_rect(float x, float y, float width, float height)