summaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorEmmanuel Lesueur <48604057+Emm54321@users.noreply.github.com>2025-02-26 19:07:29 +0100
committerLaurenz <laurmaedje@gmail.com>2025-02-26 21:21:15 +0100
commit59569cbf6172ae8f2159e794c2ee26d3d36713df (patch)
treec5f1b9607bf6d7dcb96bb3495b858d9514d289d6 /crates
parentd04f014fc6fef4a1a4031d1f1f00b5cbd4599c05 (diff)
Fix curve with multiple non-closed components. (#5963)
Diffstat (limited to 'crates')
-rw-r--r--crates/typst-layout/src/shapes.rs1
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.