Fixed #184
This commit is contained in:
1 parent
db299d4fe9
commit
c8fd795574
1 file changed
+10
-2
@@ -38,7 +38,15 @@ namespace HandyControl.Media.Animation
|
||||
|
||||
private bool _areKeyTimesValid;
|
||||
|
||||
public GeometryAnimationUsingKeyFrames() => _areKeyTimesValid = true;
|
||||
public GeometryAnimationUsingKeyFrames()
|
||||
{
|
||||
var currentCulture = System.Threading.Thread.CurrentThread.CurrentCulture.Parent.Name;
|
||||
if (!currentCulture.Equals("en", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
System.Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("en-US");
|
||||
}
|
||||
_areKeyTimesValid = true;
|
||||
}
|
||||
|
||||
public new GeometryAnimationUsingKeyFrames Clone() => (GeometryAnimationUsingKeyFrames)base.Clone();
|
||||
|
||||
@@ -516,4 +524,4 @@ namespace HandyControl.Media.Animation
|
||||
while (index < maxKeyFrameIndex);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user