From 50cd702c0c1ffc48a87bb081c97ca5f833a09bd6 Mon Sep 17 00:00:00 2001 From: autumn <109412646+autumn-2-net@users.noreply.github.com> Date: Wed, 9 Oct 2024 12:02:10 +0800 Subject: [PATCH] fix bug --- auto_pack_img.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/auto_pack_img.py b/auto_pack_img.py index e7e2a67..380d8c3 100644 --- a/auto_pack_img.py +++ b/auto_pack_img.py @@ -46,7 +46,9 @@ def grow_node(root, width, height): elif can_grow_down: return grow_down(root, width, height) else: - return None + root.width=root.width+width + root.height=root.height+height + return grow_node(root, width, height) def grow_right(root, width, height):