Skip to content

Commit

Permalink
fix FS#2133 - Modify > Break out Manual: exception for closed polyline
Browse files Browse the repository at this point in the history
  • Loading branch information
qcad committed Nov 12, 2020
1 parent 8d0dae1 commit 0a8aa17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/Modify/BreakOutManual/BreakOutManual.js
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ BreakOutManual.prototype.pickCoordinate = function(event, preview) {

BreakOutManual.prototype.getOperation = function(preview) {
//var newSegments = BreakOutManual.autoTrim(this.shape, this.point2, this.point4);
var newSegments = ShapeAlgorithms.autoSplitManual(this.shape, undefined, undefined, this.point2, this.point4);
var newSegments = ShapeAlgorithms.autoSplitManual(this.shape, undefined, undefined, this.point2, this.point4, RVector.getAverage(this.point2, this.point4));

if (isNull(newSegments)) {
return undefined;
Expand Down

0 comments on commit 0a8aa17

Please sign in to comment.