Skip to content

Commit 6faaee2

Browse files
linusgawesomekling
authored andcommitted
LibWeb: Fix copy/paste typo in CanvasRenderingContext2D::stroke_style()
This returned the fill style, not the stroke style!
1 parent ca093f4 commit 6faaee2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Userland/Libraries/LibWeb/HTML/CanvasRenderingContext2D.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ void CanvasRenderingContext2D::set_stroke_style(String style)
6363

6464
String CanvasRenderingContext2D::stroke_style() const
6565
{
66-
return m_fill_style.to_string();
66+
return m_stroke_style.to_string();
6767
}
6868

6969
void CanvasRenderingContext2D::stroke_rect(float x, float y, float width, float height)

0 commit comments

Comments
 (0)