-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Fix anchr rotate map drift #61516
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
base: master
Are you sure you want to change the base?
Fix anchr rotate map drift #61516
Conversation
🪟 Windows buildsDownload Windows builds of this PR for testing. 🪟 Windows Qt6 buildsDownload Windows Qt6 builds of this PR for testing. |
Test failure is unrelated. |
The QGIS project highly values your contribution and would love to see this work merged! Unfortunately this PR has not had any activity in the last 14 days and is being automatically marked as "stale". If you think this pull request should be merged, please check
|
Awaiting review, hana test failure is unrelated. |
The QGIS project highly values your contribution and would love to see this work merged! Unfortunately this PR has not had any activity in the last 14 days and is being automatically marked as "stale". If you think this pull request should be merged, please check
|
status unchanged |
The QGIS project highly values your contribution and would love to see this work merged! Unfortunately this PR has not had any activity in the last 14 days and is being automatically marked as "stale". If you think this pull request should be merged, please check
|
Unstale |
The QGIS project highly values your contribution and would love to see this work merged! Unfortunately this PR has not had any activity in the last 14 days and is being automatically marked as "stale". If you think this pull request should be merged, please check
|
unstale |
The QGIS project highly values your contribution and would love to see this work merged! Unfortunately this PR has not had any activity in the last 14 days and is being automatically marked as "stale". If you think this pull request should be merged, please check
|
hana test error |
Description
fixes #61347
This is the solution that I found to keep the map in place when it is rotated and the anchor point is changed or the map is redrawn.
As the issue only occurs when the atlas forces a redraw and the issue only appears when the reference point is not in the top left and the map is rotated, the initial behaviour is fine. Conbining those two conditios lead to a drifting on the map on each redraw. The alternative calculation avoid this problem and maintains the position of the map.
Maintaining the original code path was needed to prevent issues when initialy creating the map in the test case as the new calculation method didn't play well with how the item was placed in the map. I am unsure why this was the case.
Here is a gif of the fixed behaviour.
