Skip to content

Commit

Permalink
fix: fix more index issues
Browse files Browse the repository at this point in the history
  • Loading branch information
hansemannn committed Dec 25, 2019
1 parent d289b7a commit 6532406
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Classes/TiGooglemapsCircleProxy.m
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ - (CLLocationCoordinate2D)positionFromPoint:(id)point

return CLLocationCoordinate2DMake(latitude, longitude);
} else if ([point isKindOfClass:[NSArray class]]) {
CLLocationDegrees latitude = [TiUtils doubleValue:[point objectAtIndex:0]];
CLLocationDegrees longitude = [TiUtils doubleValue:[point objectAtIndex:1]];
CLLocationDegrees latitude = [TiUtils doubleValue:[point objectAtIndex:1]];
CLLocationDegrees longitude = [TiUtils doubleValue:[point objectAtIndex:0]];

return CLLocationCoordinate2DMake(latitude, longitude);
}
Expand Down
4 changes: 2 additions & 2 deletions Classes/TiGooglemapsPolygonProxy.m
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ - (void)setPoints:(id)points

[path addLatitude:latitude longitude:longitude];
} else if ([point isKindOfClass:[NSArray class]]) {
CLLocationDegrees latitude = [TiUtils doubleValue:[point objectAtIndex:0]];
CLLocationDegrees longitude = [TiUtils doubleValue:[point objectAtIndex:1]];
CLLocationDegrees latitude = [TiUtils doubleValue:[point objectAtIndex:1]];
CLLocationDegrees longitude = [TiUtils doubleValue:[point objectAtIndex:0]];

[path addLatitude:latitude longitude:longitude];
}
Expand Down

0 comments on commit 6532406

Please sign in to comment.