Skip to content

Commit

Permalink
attributes: use cached segments subdivisions for calculating the conn…
Browse files Browse the repository at this point in the history
…ection stubs (#1702)
  • Loading branch information
kumilingus authored Jun 17, 2022
1 parent 64ef08b commit 57199ed
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/dia/attributes/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -620,8 +620,9 @@ const attributesNS = {
offset = stubs;
}
const path = this.getConnection();
const sourceParts = path.divideAtLength(offset);
const targetParts = path.divideAtLength(-offset);
const segmentSubdivisions = this.getConnectionSubdivisions();
const sourceParts = path.divideAtLength(offset, { segmentSubdivisions });
const targetParts = path.divideAtLength(-offset, { segmentSubdivisions });
if (sourceParts && targetParts) {
d = `${sourceParts[0].serialize()} ${targetParts[1].serialize()}`;
}
Expand Down

0 comments on commit 57199ed

Please sign in to comment.