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

Backport #59092 Remove duplicate equality operator for QgsPointXY #59096

Merged
merged 5 commits into from
Oct 15, 2024

Conversation

3nids
Copy link
Member

@3nids 3nids commented Oct 15, 2024

manual backport of #59092

@3nids 3nids added the Backport Is a backport of another pull request label Oct 15, 2024
@github-actions github-actions bot added this to the 3.35.0 milestone Oct 15, 2024
@3nids 3nids closed this Oct 15, 2024
@3nids 3nids reopened this Oct 15, 2024
nyalldawson and others added 3 commits October 15, 2024 14:47
We had two different(!!!!) implementations for equality operator
for QgsPointXY, with different logic (one handled empty points,
the other didn't). This compiled only because one was not marked
as const. So we'd get a DIFFERENT equality check logic depending
on whether or not the first point was const... eeek!

Remove the duplicate one, mark the better one as const
I'm not 100% sure if the point == mSnapMatch.point() comparison was
intended be done using QgsPointXY or QgsPoint objects here!

Use QgsPointXY to keep the behavior the same from
before the duplicate QgsPointXY == operator was removed...
@3nids 3nids force-pushed the backport-59092-to-release-3_34 branch from d706ec8 to ec3c58d Compare October 15, 2024 12:47
@3nids 3nids force-pushed the backport-59092-to-release-3_34 branch from 72cde28 to ad89192 Compare October 15, 2024 12:53
@nyalldawson nyalldawson merged commit 647a89a into release-3_34 Oct 15, 2024
28 of 29 checks passed
@nyalldawson nyalldawson deleted the backport-59092-to-release-3_34 branch October 15, 2024 20:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backport Is a backport of another pull request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants