Skip to content

Commit 70fc546

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

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
@@ -129,7 +129,7 @@ class BuildingShapeUtils extends ShapeUtils {
129129
if (currentRingWays[0].querySelector('nd').getAttribute('ref') ===
130130
currentRingWays[currentRingWays.length - 1].querySelector('nd:last-of-type').getAttribute('ref')) {
131131
if (BuildingShapeUtils.isSelfIntersecting(BuildingShapeUtils.joinAllWays(currentRingWays))) {
132-
return;
132+
return [];
133133
}
134134
return currentRingWays;
135135
}

0 commit comments

Comments
 (0)