Skip to content

vello_common: Correctly handle subpaths without initial MoveTo#1544

Merged
tomcur merged 4 commits into
linebender:mainfrom
tomcur:push-tuvrtnyszsmp
Mar 29, 2026
Merged

vello_common: Correctly handle subpaths without initial MoveTo#1544
tomcur merged 4 commits into
linebender:mainfrom
tomcur:push-tuvrtnyszsmp

Conversation

@tomcur
Copy link
Copy Markdown
Member

@tomcur tomcur commented Mar 26, 2026

@tomcur tomcur force-pushed the push-tuvrtnyszsmp branch from 01918d8 to 16731c1 Compare March 26, 2026 21:18
@tomcur tomcur force-pushed the push-tuvrtnyszsmp branch from ad71e51 to 21965f0 Compare March 26, 2026 21:46
Copy link
Copy Markdown
Contributor

@dominikh dominikh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Technically we could track if we saw any MoveTo at all and debug_assert on that, but that's probably not worth the hassle.

@tomcur tomcur added this pull request to the merge queue Mar 29, 2026
Merged via the queue into linebender:main with commit b373c2c Mar 29, 2026
17 checks passed
@tomcur tomcur deleted the push-tuvrtnyszsmp branch March 29, 2026 21:24
Copy link
Copy Markdown
Member Author

@tomcur tomcur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In SVG non-empty paths must start with a MoveTo. Kurbo was documenting that each subpath must start with a MoveTo. We now debug_assert that the first element of the path is a MoveTo, aligning with SVG.

I've opened linebender/kurbo#565 to align Kurbo with SVG's semantics.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants