Skip to content

Conversation

@miloush
Copy link
Contributor

@miloush miloush commented Jun 13, 2023

Fixes #7918

Description

A recent removal of StringBuilders had a bug in there causing Color.ToString() throw FormatException.

This PR fixes the typo.

Customer Impact

Customers not taking this fix will continue experiencing exceptions when trying to display the textual representation of colors in scRGB color space.

Regression

Yes. #6275

Testing

Built using 8.0.0-preview.3.23174.8 and verified that the ToString() no longer throws for scRGB colors and the output is formatted correctly.

Risk

No risk, fixes regression in .NET 7.

Microsoft Reviewers: Open in CodeFlow

@miloush miloush requested a review from a team as a code owner June 13, 2023 23:21
@ghost ghost assigned miloush Jun 13, 2023
@ghost ghost added the PR metadata: Label to tag PRs, to facilitate with triage label Jun 13, 2023
@ghost ghost requested review from dipeshmsft and singhashish-wpf June 13, 2023 23:21
@ghost ghost added the Community Contribution A label for all community Contributions label Jun 13, 2023
Copy link
Member

@lindexi lindexi left a comment

Choose a reason for hiding this comment

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

Thank you @miloush

@dipeshmsft
Copy link
Member

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@dipeshmsft
Copy link
Member

/backport to release/7.0-staging

@github-actions
Copy link

Started backporting to release/7.0-staging: https://github.com/dotnet/wpf/actions/runs/5309158849

@wstaelens
Copy link
Contributor

oh my god

@pchaurasia14 pchaurasia14 merged commit cdb684b into dotnet:main Jun 27, 2023
@pchaurasia14
Copy link
Contributor

Thanks @miloush for the fix!

@ghost ghost locked as resolved and limited conversation to collaborators Jul 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Community Contribution A label for all community Contributions PR metadata: Label to tag PRs, to facilitate with triage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

NET 7.0 Windows.Media.Color fails to convert to string using ToString() when created by the FromScRgb method

6 participants