Skip to content

Commit

Permalink
Fixed issue 12 based on feedback where geo conversion improperly trea…
Browse files Browse the repository at this point in the history
…ts 0,0
  • Loading branch information
danielcrenna committed Apr 13, 2012
1 parent 7727c0c commit 5a2c980
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -54,12 +54,12 @@ public override object ReadJson(JsonReader reader, Type objectType, object exist
}
reader.Read();
var coords = new double[2];
if (reader.TokenType == JsonToken.Float)
if (reader.TokenType == JsonToken.Float || reader.TokenType == JsonToken.Integer)
{
coords[0] = (double)reader.Value;
reader.Read();
}
if (reader.TokenType == JsonToken.Float)
if (reader.TokenType == JsonToken.Float || reader.TokenType == JsonToken.Integer)
{
coords[1] = (double)reader.Value;
reader.Read();
Expand Down

0 comments on commit 5a2c980

Please sign in to comment.