Skip to content

Commit cdb684b

Browse files
authored
Fix sc Color.ToString() (#7923)
Co-authored-by: miloush <[email protected]>
1 parent 5403119 commit cdb684b

File tree

1 file changed

+1
-1
lines changed
  • src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media

1 file changed

+1
-1
lines changed

src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Media/Color.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ internal string ConvertToString(string format, IFormatProvider provider)
286286
// Helper to get the numeric list separator for a given culture.
287287
char separator = MS.Internal.TokenizerHelper.GetNumericListSeparator(provider);
288288
return string.Format(provider,
289-
$"sc#{{1:{format}}}{{0}} {{{format}}}{{0}} {{3:{format}}}{{0}} {{4:{format}}}",
289+
$"sc#{{1:{format}}}{{0}} {{2:{format}}}{{0}} {{3:{format}}}{{0}} {{4:{format}}}",
290290
separator, scRgbColor.a, scRgbColor.r, scRgbColor.g, scRgbColor.b);
291291
}
292292
}

0 commit comments

Comments
 (0)