From 3268e255587e93040415c28af34de48785e317e8 Mon Sep 17 00:00:00 2001 From: indierusty Date: Fri, 5 Sep 2025 07:55:02 +0530 Subject: [PATCH] fix path tool box selection not selecting the enclosed segment --- editor/src/messages/tool/common_functionality/shape_editor.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/src/messages/tool/common_functionality/shape_editor.rs b/editor/src/messages/tool/common_functionality/shape_editor.rs index 1c937ae23a..b97efd6e3b 100644 --- a/editor/src/messages/tool/common_functionality/shape_editor.rs +++ b/editor/src/messages/tool/common_functionality/shape_editor.rs @@ -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, _ => {