mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-31 13:17:19 -06:00
Direct Selection: copy the segment's anchors (clippy)
This commit is contained in:
@@ -543,7 +543,7 @@ fn crossed_segments(path: &PathData, r: Rect) -> Vec<AnchorRef> {
|
||||
if r.contains(a.p) || r.contains(b.p) {
|
||||
continue;
|
||||
}
|
||||
let piece = PathData::single(vectorcraft_geom::SubPath::new(vec![a.clone(), b.clone()], false));
|
||||
let piece = PathData::single(vectorcraft_geom::SubPath::new(vec![*a, *b], false));
|
||||
if vectorcraft_geom::hit::intersects_rect(&piece, r) {
|
||||
out.push((si, seg));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user