File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
source/FFImageLoading.Touch/Helpers Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1
1
using System ;
2
2
using System . Collections . Generic ;
3
3
using System . Linq ;
4
+ using System . Globalization ;
4
5
using ImageIO ;
5
6
using UIKit ;
6
7
using FFImageLoading . Work ;
@@ -61,12 +62,12 @@ private static List<int> GetDelays(CGImageSource source)
61
62
{
62
63
using ( var unclampedDelay = gifProperties . ValueForKey ( CGImageProperties . GIFUnclampedDelayTime ) )
63
64
{
64
- double delayAsDouble = unclampedDelay != null ? double . Parse ( unclampedDelay . ToString ( ) ) : 0 ;
65
+ double delayAsDouble = unclampedDelay != null ? double . Parse ( unclampedDelay . ToString ( ) , CultureInfo . InvariantCulture ) : 0 ;
65
66
66
67
if ( delayAsDouble == 0 )
67
68
{
68
69
using ( var delay = gifProperties . ValueForKey ( CGImageProperties . GIFDelayTime ) )
69
- delayAsDouble = delay != null ? double . Parse ( delay . ToString ( ) ) : 0 ;
70
+ delayAsDouble = delay != null ? double . Parse ( delay . ToString ( ) , CultureInfo . InvariantCulture ) : 0 ;
70
71
}
71
72
72
73
if ( delayAsDouble > 0 )
You can’t perform that action at this time.
0 commit comments