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

Revert geometry/rubberband item's buffer parameter change #4708

Merged
merged 1 commit into from
Nov 2, 2023

Conversation

nirvn
Copy link
Member

@nirvn nirvn commented Oct 30, 2023

This PR aims at fixing a crasher that emerged in QField 3.0.3:

image

Stacktrace:

image

Looking at the list of commits (v3.0.2...v3.0.3) I can only see one culprit: the buffer parameter change here (869c197#diff-6ec0f90b884446f8c30d9dd753160c7e100e8929ae79edd44679d1df523bee57R167)

The logic behind that change was to reduce the number of vertices produced by the buffering operation as a tiny optimization. That appears to have had negative consequences. Let's revert.

(Note that the other change, the removeDuplicateNodes call in the rubber band, is important and not tied to the crash, hence keeping it in.

@qfield-fairy
Copy link
Collaborator

Copy link
Collaborator

@suricactus suricactus left a comment

Choose a reason for hiding this comment

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

Thanks! LGTM

@nirvn nirvn merged commit fa4b849 into master Nov 2, 2023
21 checks passed
@nirvn nirvn deleted the edgeindex_fix branch November 2, 2023 12:58
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.

3 participants