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

Fixed a crash after changing the display scale #20990

Merged
merged 1 commit into from
Aug 6, 2023

Conversation

Mailaender
Copy link
Member

This is a followup to #20877 and an attempted fix for #20951 which I can't reproduce as the option is not available to me.

Copy link
Member

@PunkPun PunkPun left a comment

Choose a reason for hiding this comment

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

Crashes with the same error

@PunkPun
Copy link
Member

PunkPun commented Aug 5, 2023

w.X and w.Y are null as well

@PunkPun
Copy link
Member

PunkPun commented Aug 6, 2023

This seems to fix the issue.

Though I'm not sure why we need to use a readonly dictionary here? Also maybe fixing the bug here is not addressing the issue at the core? Sorry I don't have time to investigate

@Mailaender Mailaender changed the title Attempt to fix a crash after changing the display scale Fixed a crash after changing the display scale Aug 6, 2023
@Mailaender
Copy link
Member Author

If you have a look at #20877 you can see that I am using the exact same pattern for safe evaluations.

Copy link
Member

@PunkPun PunkPun left a comment

Choose a reason for hiding this comment

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

Ah I see now

@PunkPun PunkPun added this to the Next Release milestone Aug 6, 2023
@PunkPun PunkPun merged commit b6a5d19 into OpenRA:bleed Aug 6, 2023
3 checks passed
@PunkPun
Copy link
Member

PunkPun commented Aug 6, 2023

Changelog

db3145e

@Mailaender Mailaender deleted the recalc-ui-scale branch August 6, 2023 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants