Skip to content

Commit

Permalink
Only check self-intersection when allowSelfIntersection is false (#1537
Browse files Browse the repository at this point in the history
…) (patch)
  • Loading branch information
Falke-Design authored Nov 24, 2024
1 parent abe8408 commit 7b02826
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/Edit/L.PM.Edit.Line.js
Original file line number Diff line number Diff line change
Expand Up @@ -782,7 +782,7 @@ Edit.Line = Edit.extend({

// if self intersection is not allowed but this edit caused a self intersection,
// reset and cancel; do not fire events
let intersection = this.hasSelfIntersection();
let intersection = !this.options.allowSelfIntersection && this.hasSelfIntersection();
if (
intersection &&
this.options.allowSelfIntersectionEdit &&
Expand Down

0 comments on commit 7b02826

Please sign in to comment.