Skip to content

Commit 32e143b

Browse files
Fix sc Color.ToString() (#7944)
Co-authored-by: miloush <[email protected]>
1 parent 8e5e250 commit 32e143b

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
@@ -287,7 +287,7 @@ internal string ConvertToString(string format, IFormatProvider provider)
287287
// Helper to get the numeric list separator for a given culture.
288288
char separator = MS.Internal.TokenizerHelper.GetNumericListSeparator(provider);
289289
return string.Format(provider,
290-
$"sc#{{1:{format}}}{{0}} {{{format}}}{{0}} {{3:{format}}}{{0}} {{4:{format}}}",
290+
$"sc#{{1:{format}}}{{0}} {{2:{format}}}{{0}} {{3:{format}}}{{0}} {{4:{format}}}",
291291
separator, scRgbColor.a, scRgbColor.r, scRgbColor.g, scRgbColor.b);
292292
}
293293
}

0 commit comments

Comments
 (0)