Skip to content

Commit 929c07b

Browse files
authored
Update BuildingShapeUtils.js
1 parent c331a53 commit 929c07b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/extras/BuildingShapeUtils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ class BuildingShapeUtils extends ShapeUtils {
128128
// Check if the array contains ways which will together form a ring. Return the array if it does.
129129
if (currentRingWays[0].querySelector('nd').getAttribute('ref') ===
130130
currentRingWays[currentRingWays.length - 1].querySelector('nd:last-of-type').getAttribute('ref')) {
131-
if (this.isSelfIntersecting(this.joinAllWays(currentRingWays))) {
131+
if (BuildingShapeUtils.isSelfIntersecting(BuildingShapeUtils.joinAllWays(currentRingWays))) {
132132
return;
133133
}
134134
return currentRingWays;

0 commit comments

Comments
 (0)