We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 20047dc commit c268a47Copy full SHA for c268a47
src/extras/BuildingShapeUtils.js
@@ -30,7 +30,7 @@ class BuildingShapeUtils extends ShapeUtils {
30
nodes.push(nodelist[ref]);
31
}
32
// If the first and last point are identical, remove the last copy.
33
- if (nodes[0][0] === nodes[elements.length - 1][0] && nodes[0][1] === nodes[elements.length - 1][1]) {
+ if (nodes.length > 1 && nodes[0][0] === nodes[elements.length - 1][0] && nodes[0][1] === nodes[elements.length - 1][1]) {
34
nodes.pop();
35
36
let first = true;
0 commit comments