diff options
| author | Emmanuel Lesueur <48604057+Emm54321@users.noreply.github.com> | 2025-02-26 19:07:29 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-26 18:07:29 +0000 |
| commit | 52f1f53973414be72bf22c3253ab365f8db067df (patch) | |
| tree | bd2c3f2d5871466101797fd9cc3977caaf13d5c3 /crates/typst-layout | |
| parent | d6b0d68ffa4963459f52f7d774080f1f128841d4 (diff) | |
Fix curve with multiple non-closed components. (#5963)
Diffstat (limited to 'crates/typst-layout')
| -rw-r--r-- | crates/typst-layout/src/shapes.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/typst-layout/src/shapes.rs b/crates/typst-layout/src/shapes.rs index 21d0a518..7ab41e9d 100644 --- a/crates/typst-layout/src/shapes.rs +++ b/crates/typst-layout/src/shapes.rs @@ -284,6 +284,7 @@ impl<'a> CurveBuilder<'a> { self.last_point = point; self.last_control_from = point; self.is_started = true; + self.is_empty = true; } /// Add a line segment. |
