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

Can Esc/finish drawing an Area when cursor is in invalid position #4860

Merged
merged 1 commit into from
Mar 11, 2018

Conversation

jguthrie100
Copy link
Contributor

@jguthrie100 jguthrie100 commented Mar 8, 2018

Fixes #4845

Can press Esc/Return when cursor is in invalid position and the drawing will still complete

An exception is made for when the completed Area would be invalid (i.e. when a temporarily invalid leading edge has been made as per #4655 , which cannot be accepted as a valid edge when closing the Area)

@jguthrie100
Copy link
Contributor Author

jguthrie100 commented Mar 8, 2018

I've just realised that the 'exception' I mentioned above was basically an existing bug (At the moment, if you press Escape after drawing a leading edge that goes around a corner to the 'wrong side', you end up with a self-intersecting area), so this fixes 2-in-one

 - When drawing an Area, the leading edge is allowed to temporarily be in an invalid position (see openstreetmap#4655)..
    .. Finishing a drawing is disabled if doing so would close with the invalid leading edge
@bhousel
Copy link
Member

bhousel commented Mar 11, 2018

Hey @jguthrie100, I just tested it out and it works great - thanks so much for the PR 🙇

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