Skip to content

Commit

Permalink
Merge pull request getodk#250 from jnordling/master
Browse files Browse the repository at this point in the history
Fix Non closed polygons getodk#200. Array index reference issue
  • Loading branch information
yanokwa authored Nov 16, 2016
2 parents fc44964 + 79ba991 commit 78be481
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ private String generateReturnString() {
String temp_string = "";
//Add the first marker to the end of the array, so the first and the last are the same
if (markerArray.size() > 1 ){
markerArray.add(markerArray.get(1));
markerArray.add(markerArray.get(0));
for (int i = 0 ; i < markerArray.size();i++){
String lat = Double.toString(markerArray.get(i).getPosition().latitude);
String lng = Double.toString(markerArray.get(i).getPosition().longitude);
Expand Down

0 comments on commit 78be481

Please sign in to comment.