-
-
Notifications
You must be signed in to change notification settings - Fork 875
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
feat: handle correctly landscape labels with negative angle #4176
Conversation
- See issue Stellarium#4174. - This also fixes a placement bug when angle = 0.
Great PR! Please pay attention to the following items before merging: Files matching
This is an automatically generated QA checklist based on modified files. |
At zero degrees the label has to be centered over (or in your case, under) the line. This was by design, not error. |
Indeed, but with current implementation, there're not centered. Screenshot with current implementation. ![]() Screenshot with this PR change ![]() |
Can you please share this landscape (at least its gazetteer file) so that I can test? |
I am talking about the appearance of the gazetter labels so far (above landscape), not your way (not originally developed). It's part of the Callanish3D package. Just that I edited it and made negative altitude offsets. Presumably you did the same, but you did not show your gazetteer either... |
Thanks.
My gazetteer file is attached to the original issue description. |
@martignoni is monitor HiDPI device? |
Yes. Here the relevant lines from the log:
I'm suspecting now this is the reason of the different values calculated for |
@alex-w How can I handle HiDPI and non HiDPI devices with |
Please see similar case in code for drawing compass marks:
hint: using ppx for correction of the coordinates |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good now, thanks!
Please fix indentation and remove commented-out new qDebug lines.
Else OK for me.
Thanks! |
Hello @martignoni! Please check the fresh version (development snapshot) of Stellarium: |
Hello @martignoni! Please check the latest stable version of Stellarium: |
Description
Fixes #4174
Screenshots (if appropriate):
Type of change
How Has This Been Tested?
Test Configuration:
Checklist: