diff --git a/src/Titano.Ui/Visuals/DrawingElement.cs b/src/Titano.Ui/Visuals/DrawingElement.cs index 9268485b..26b2b90d 100644 --- a/src/Titano.Ui/Visuals/DrawingElement.cs +++ b/src/Titano.Ui/Visuals/DrawingElement.cs @@ -1,5 +1,4 @@ using System.Collections.Specialized; -using System.Globalization; using System.Windows; using System.Windows.Automation; using System.Windows.Automation.Peers; @@ -403,7 +402,7 @@ public abstract class DrawingElement : FrameworkElement /// Digits as the rest of the UI shows them: with the UI culture alone, Arabic text before a number would turn its /// digits into Arabic-Indic ones in charts only. /// - private static readonly NumberSubstitution EuropeanDigits = new(NumberCultureSource.Override, CultureInfo.InvariantCulture, NumberSubstitutionMethod.European); + private static readonly NumberSubstitution EuropeanDigits = new() { Substitution = NumberSubstitutionMethod.European }; private FormattedText Format(string text, double emSize, Brush brush, bool semiBold, FlowDirection direction) {