Browse Source

LibWeb: Fix copy/paste typo in CanvasRenderingContext2D::stroke_style()

This returned the fill style, not the stroke style!
Linus Groh 3 years ago
parent
commit
6faaee2bc8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Userland/Libraries/LibWeb/HTML/CanvasRenderingContext2D.cpp

+ 1 - 1
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)