Skip to content

Use exact endpoints for PathSeg - #465

Merged
jneem merged 1 commit into
mainfrom
from-segment-continuity
Jul 14, 2025
Merged

Use exact endpoints for PathSeg#465
jneem merged 1 commit into
mainfrom
from-segment-continuity

Conversation

@jneem

@jneem jneem commented Jul 14, 2025

Copy link
Copy Markdown
Member

Fixes #464.

The bug was that BezPath::from_segments checks endpoints for equality to determine whether a MoveTo in required. That's fine, except that it requires PathSeg::start and PathSeg::end to be exact. Before this PR, they were subject to rounding error.

@tomcur tomcur left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Makes sense, and good catch!

@jneem
jneem added this pull request to the merge queue Jul 14, 2025
Merged via the queue into main with commit 19a9e3e Jul 14, 2025
15 checks passed
@jneem
jneem deleted the from-segment-continuity branch July 14, 2025 18:27
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.

BezPath::from_path_segments incorrectly inserts new subpaths

2 participants