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

Be more permissive in segments_of_slice. #98

Merged
merged 2 commits into from
Apr 26, 2020
Merged

Conversation

jneem
Copy link
Contributor

@jneem jneem commented Apr 7, 2020

My use-case is this: I have a druid program that allows for some free-hand drawing. I want to find a bounding box for the part of the curve that was drawn since the last frame. It would be very convenient if I could just slice the current curve and call bounding_box on the slice, but it panics if the part of the curve since the last frame doesn't start with a MoveTo.

Copy link
Contributor

@raphlinus raphlinus left a comment

Choose a reason for hiding this comment

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

I can see the value in this. Thanks for the contribution!

@raphlinus raphlinus merged commit 2b1578b into linebender:master Apr 26, 2020
@raphlinus
Copy link
Contributor

Thanks!

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