Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid inserting grouping commas into large numbers #78

Merged
merged 5 commits into from
Sep 16, 2024

Conversation

jzbrooks
Copy link
Owner

@jzbrooks jzbrooks commented Sep 16, 2024

Fixes #60.

The problem was obvious after isolating the command where the paths diverged.

a3,940.09,3,940.09,0,0,0,-24.55,-0.461

The issue wasn't obvious because differences of relative command coordinates usually aren't big, but the radius of an arc is a magnitude, so it isn't relative to anything. This seemed like a bug with the convert curves to arc optimization because it is the most likely place for this command printing bug to have surfaced. Not only that, but the optimization also needs to select the arc with a huge radius over the bezier curve, which makes surfacing this bug even less likely.

@jzbrooks jzbrooks force-pushed the remove-digit-grouping branch from 960fb60 to 64b597f Compare September 16, 2024 02:34
@jzbrooks jzbrooks force-pushed the remove-digit-grouping branch from 64b597f to cca07e5 Compare September 16, 2024 02:35
@jzbrooks jzbrooks merged commit 9cbb51d into master Sep 16, 2024
2 checks passed
@jzbrooks jzbrooks deleted the remove-digit-grouping branch September 16, 2024 02:45
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.

ConvertCurvesToArcs warps some images
1 participant