@@ -1864,7 +1864,7 @@ impl Fsm for PathToolFsmState {
1864
1864
let ( points_inside, segments_inside) = match selection_shape {
1865
1865
SelectionShapeType :: Box => {
1866
1866
let previous_mouse = document. metadata ( ) . document_to_viewport . transform_point2 ( tool_data. previous_mouse_position ) ;
1867
- let bbox = Rect :: new ( tool_data. drag_start_pos . x , tool_data. drag_start_pos . y , previous_mouse. x , previous_mouse. y ) ;
1867
+ let bbox = Rect :: new ( tool_data. drag_start_pos . x , tool_data. drag_start_pos . y , previous_mouse. x , previous_mouse. y ) . abs ( ) ;
1868
1868
shape_editor. get_inside_points_and_segments (
1869
1869
& document. network_interface ,
1870
1870
SelectionShape :: Box ( bbox) ,
@@ -2281,7 +2281,7 @@ impl Fsm for PathToolFsmState {
2281
2281
2282
2282
match selection_shape {
2283
2283
SelectionShapeType :: Box => {
2284
- let bbox = Rect :: new ( tool_data. drag_start_pos . x , tool_data. drag_start_pos . y , previous_mouse. x , previous_mouse. y ) ;
2284
+ let bbox = Rect :: new ( tool_data. drag_start_pos . x , tool_data. drag_start_pos . y , previous_mouse. x , previous_mouse. y ) . abs ( ) ;
2285
2285
2286
2286
shape_editor. select_all_in_shape (
2287
2287
& document. network_interface ,
@@ -2378,7 +2378,7 @@ impl Fsm for PathToolFsmState {
2378
2378
} else {
2379
2379
match selection_shape {
2380
2380
SelectionShapeType :: Box => {
2381
- let bbox = Rect :: new ( tool_data. drag_start_pos . x , tool_data. drag_start_pos . y , previous_mouse. x , previous_mouse. y ) ;
2381
+ let bbox = Rect :: new ( tool_data. drag_start_pos . x , tool_data. drag_start_pos . y , previous_mouse. x , previous_mouse. y ) . abs ( ) ;
2382
2382
2383
2383
shape_editor. select_all_in_shape (
2384
2384
& document. network_interface ,
0 commit comments