Skip to content

Commit 4081b02

Browse files
authored
Update BuildingShapeUtils.js
1 parent 20ec54f commit 4081b02

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/extras/BuildingShapeUtils.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ class BuildingShapeUtils extends ShapeUtils {
9292
i++;
9393
changed = true;
9494
} else if (way1[0].getAttribute('ref') === way2[0].getAttribute('ref')) {
95-
const tempway = BuildingShapeUtils.reverseWay(ways[i]);
96-
const result = BuildingShapeUtils.joinWays(tempway, ways[i + 1]);
95+
const tempway = BuildingShapeUtils.reverseWay(ways[i+1]);
96+
const result = BuildingShapeUtils.joinWays(tempway, ways[i]);
9797
openWays.push(result);
9898
i++;
9999
changed = true;

0 commit comments

Comments
 (0)