Skip to content

Commit 862f024

Browse files
TobikblomFalke-Design
authored andcommitted
Hotfix
1 parent 7f3e92b commit 862f024

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/js/Edit/L.PM.Edit.Line.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,8 @@ Edit.Line = Edit.extend({
474474
indexPath.length > 1 ? get(this._markers, parentPath) : this._markers;
475475

476476
// define whether marker is part of hole
477-
const isHole = parentPath[parentPath.length - 1] > 0;
477+
const isHole =
478+
parentPath[parentPath.length - 1] > 0 && this._layer instanceof L.Polygon;
478479

479480
// prevent removal of the layer if the vertex count is below minimum when not a hole
480481
if (!this.options.removeLayerBelowMinVertexCount && !isHole) {

0 commit comments

Comments
 (0)