Skip to content

Commit a4cb81f

Browse files
committed
Fix bounds check on the right and the bottom of the clipped area
1 parent 829ea6f commit a4cb81f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/core/item_tree.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -333,8 +333,8 @@ impl ItemRc {
333333
let clip = clip.to_box2d();
334334
let geometry = geometry.to_box2d();
335335
!clip.is_empty()
336-
&& clip.max.x >= geometry.min.x
337-
&& clip.max.y >= geometry.min.y
336+
&& clip.max.x > geometry.min.x
337+
&& clip.max.y > geometry.min.y
338338
&& clip.min.x < geometry.max.x
339339
&& clip.min.y < geometry.max.y
340340
}

0 commit comments

Comments
 (0)