Skip to content

Shape crash on 125% display size#22283

Merged
PureWeen merged 1 commit into
mainfrom
foda/shapecrash
May 8, 2024
Merged

Shape crash on 125% display size#22283
PureWeen merged 1 commit into
mainfrom
foda/shapecrash

Conversation

@Foda
Copy link
Copy Markdown
Contributor

@Foda Foda commented May 7, 2024

Description of Change

Ensure that width+height scale check account for infinity, which is the result if we divide-by-zero.

Issues Fixed

Fixes #22003

@Foda Foda added platform/windows area-drawing Shapes, Borders, Shadows, Graphics, BoxView, custom drawing partner/cat 😻 this is an issue that impacts one of our partners or a customer our advisory team is engaged with labels May 7, 2024
@Foda Foda requested a review from PureWeen May 7, 2024 22:01
@Foda Foda requested a review from a team as a code owner May 7, 2024 22:01
@Foda Foda requested a review from jfversluis May 7, 2024 22:01
@Foda
Copy link
Copy Markdown
Contributor Author

Foda commented May 7, 2024

Note: a bit unsure how to test this. It seems that the fractional values which result in divide-by-zero come from display scaling

@PureWeen PureWeen merged commit 1dfae6f into main May 8, 2024
@PureWeen PureWeen deleted the foda/shapecrash branch May 8, 2024 16:34
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-drawing Shapes, Borders, Shadows, Graphics, BoxView, custom drawing fixed-in-8.0.40 fixed-in-9.0.0-preview.5.24307.10 partner/cat 😻 this is an issue that impacts one of our partners or a customer our advisory team is engaged with platform/windows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Windows] App crashes when rectangle sized by a Grid has a size of 1 on 125% scale screen

5 participants