mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-15 22:28:10 +08:00
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:
@@ -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,
|
||||
_ => {
|
||||
|
||||
Reference in New Issue
Block a user