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

Fix vertical labeling when rotation is 270° #54667

Closed
wants to merge 7 commits into from

Conversation

pblottiere
Copy link
Member

Description

See #54598

The label cannot be put in this position on master when Show upside-down labels is set to never:

image

@github-actions github-actions bot added this to the 3.34.0 milestone Sep 19, 2023
@pblottiere pblottiere added Bug Either a bug report, or a bug fix. Let's hope for the latter! Labeling Related to QGIS map labeling labels Sep 22, 2023
@nyalldawson
Copy link
Collaborator

This test mask doesn't look right -- it's negating the whole test

@pblottiere
Copy link
Member Author

Hi @nyalldawson,

This test mask doesn't look right -- it's negating the whole test

Yes you're right, I updated the control image instead. Let me know if it suits you better.

@nyalldawson
Copy link
Collaborator

@pblottiere I agree that the updated test image is arguably correct. But I'm slightly concerned about the risk of regressions here -- the logic with upside down label handling is extremely complex 😱

Could you add new tests with rotation +/- 1 degree off vertical so that we've got a test which still covers a similar use case as the existing one with vertical text?

@pblottiere
Copy link
Member Author

But I'm slightly concerned about the risk of regressions here -- the logic with upside down label handling is extremely complex 😱

Yes I understand. I won't be surprised if this PR is finally not merged :).

Could you add new tests with rotation +/- 1 degree off vertical so that we've got a test which still covers a similar use case as the existing one with vertical text?

I'm taking a look.

@pblottiere
Copy link
Member Author

Hello @nyalldawson,

CI is green 🎉. Let me know what you think :). Thanks!

@github-actions
Copy link

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

  • that all unit tests are passing

  • that all comments by reviewers have been addressed

  • that there is enough information for reviewers, in particular

    • link to any issues which this pull request fixes

    • add a description of workflows which this pull request fixes

    • add screenshots if applicable

  • that you have written unit tests where possible
    In case you should have any uncertainty, please leave a comment and we will be happy to help you proceed with this pull request.
    If there is no further activity on this pull request, it will be closed in a week.

@github-actions github-actions bot added the stale Uh oh! Seems this work is abandoned, and the PR is about to close. label Oct 31, 2023
Copy link

github-actions bot commented Nov 7, 2023

While we hate to see this happen, this PR has been automatically closed because it has not had any activity in the last 21 days. If this pull request should be reconsidered, please follow the guidelines in the previous comment and reopen this pull request. Or, if you have any further questions, just ask! We love to help, and if there's anything the QGIS project can do to help push this PR forward please let us know how we can assist.

@github-actions github-actions bot closed this Nov 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Labeling Related to QGIS map labeling stale Uh oh! Seems this work is abandoned, and the PR is about to close.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants