Skip to content

Commit

Permalink
Configuration float parse fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
janmagnet committed May 26, 2014
1 parent 7840b57 commit 3239888
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions AR.Drone.Client/Configuration/SectionBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ protected Single GetSingle(string index)
string value;
if (_settings.Items.TryGetValue(FullKey(index), out value))
{
return Single.Parse(value);
return Single.Parse(value, CultureInfo.InvariantCulture);
}
return default(Single);
}
Expand All @@ -56,7 +56,7 @@ protected Double GetDouble(string index)
string value;
if (_settings.Items.TryGetValue(FullKey(index), out value))
{
return Double.Parse(value);
return Double.Parse(value, CultureInfo.InvariantCulture);
}
return default(Double);
}
Expand Down

0 comments on commit 3239888

Please sign in to comment.