mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 05:09:12 +00:00
LibGfx: Only attempt to paint strokes with a width > 0
This commit is contained in:
parent
d4d7550588
commit
a9b4e876d0
Notes:
sideshowbarker
2024-07-17 07:25:39 +09:00
Author: https://github.com/MacDue
Commit: a9b4e876d0
Pull-request: https://github.com/SerenityOS/serenity/pull/20053
2 changed files with 6 additions and 0 deletions
|
@ -416,6 +416,8 @@ Path Path::stroke_to_fill(float thickness) const
|
|||
// Note: This convolves a polygon with the path using the algorithm described
|
||||
// in https://keithp.com/~keithp/talks/cairo2003.pdf (3.1 Stroking Splines via Convolution)
|
||||
|
||||
VERIFY(thickness > 0);
|
||||
|
||||
auto& lines = split_lines();
|
||||
if (lines.is_empty())
|
||||
return Path {};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue