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 MauiIcon ForegroundScale on systems with comma as decimal separator #11690

Merged
merged 1 commit into from
Nov 28, 2022

Conversation

AndreKraemer
Copy link
Contributor

Description of Change

Specifying the ForegroundScale with a dot caused an issue on systems with commas as decimal separators. The image got upscaled instead of downscaled on those systems because the ForegroundScale was parsed without passing InvariantCulture as culture info. Because of this, the existing implementation only worked on systems with a dot as a decimal separator.

In order to solve the issue, the InvariantCulture get's now used when parsing ForegroundScale

Issues Fixed

Fixes #11685

Fixes dotnet#11685

Specifying the ForegroundScale with a dot caused an issue on systems
with commas as decimal separators. The image got upscaled instead of
downscaled on those systems because the ForegroundScale was parsed
without passing InvariantCulture as culture info. Because of this,
it only worked on systems with a dot as a decimal separator.
@ghost ghost added the community ✨ Community Contribution label Nov 27, 2022
@ghost
Copy link

ghost commented Nov 27, 2022

Hey there @AndreKraemer! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed.

@rmarinho
Copy link
Member

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@mattleibow
Copy link
Member

Thanks so much for this PR... I wonder who wrote this code 😉

@mattleibow mattleibow merged commit ab534a2 into dotnet:main Nov 28, 2022
@Redth
Copy link
Member

Redth commented Dec 8, 2022

/backport to net7.0

@github-actions
Copy link
Contributor

github-actions bot commented Dec 8, 2022

Started backporting to net7.0: https://github.com/dotnet/maui/actions/runs/3649847088

@github-actions github-actions bot locked and limited conversation to collaborators Dec 15, 2023
@samhouts samhouts added the fixed-in-8.0.0-preview.1.7762 Look for this fix in 8.0.0-preview.1.7762! label Aug 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
community ✨ Community Contribution fixed-in-8.0.0-preview.1.7762 Look for this fix in 8.0.0-preview.1.7762!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MauiIcon ForegroundScale does not work on development machines that use a comma as a decimal seperator
5 participants