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:
parent
7686edd47b
commit
65171a5b8e
|
|
@ -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,
|
||||
_ => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue