Fix Path tool box selection not selecting enclosed segments, only intersected (#3141)

fix path tool box selection not selecting the enclosed segment

Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
Priyanshu
2025-09-08 03:38:56 +05:30
committed by GitHub
parent 7686edd47b
commit 65171a5b8e

View File

@@ -2123,7 +2123,7 @@ impl ShapeState {
let select = match selection_shape {
SelectionShape::Box(rect) => {
let enclosed = segment_bbox.contains_rect(rect);
let enclosed = rect.contains_rect(segment_bbox);
match selection_mode {
SelectionMode::Enclosed => enclosed,
_ => {