Skip to content

Commit 4a85cdd

Browse files
committed
fix some issue
1 parent 8550497 commit 4a85cdd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/wlr_layout_ui/utils.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,10 @@ def compute_bounding_box(rects):
107107

108108

109109
def trim_rects_flip_y(rects):
110-
min_x = min([r.x for r in rects])
111-
max_y = max([r.y + r.height for r in rects])
110+
min_x = min([r.x for r in rects if r])
111+
max_y = max([r.y + r.height for r in rects if r])
112112
for rect in rects:
113+
if rect is None:
114+
continue
113115
rect.x = rect.x - min_x
114116
rect.y = max_y - (rect.y + rect.height)

0 commit comments

Comments
 (0)