Skip to content

Commit 65171a5

Browse files
indierustyKeavon
andauthored
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 <[email protected]>
1 parent 7686edd commit 65171a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

editor/src/messages/tool/common_functionality/shape_editor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2123,7 +2123,7 @@ impl ShapeState {
21232123

21242124
let select = match selection_shape {
21252125
SelectionShape::Box(rect) => {
2126-
let enclosed = segment_bbox.contains_rect(rect);
2126+
let enclosed = rect.contains_rect(segment_bbox);
21272127
match selection_mode {
21282128
SelectionMode::Enclosed => enclosed,
21292129
_ => {

0 commit comments

Comments
 (0)