From 9bbdb26f0607b77918dfe41cf53ec159dfab4345 Mon Sep 17 00:00:00 2001 From: Zedhugh Chen Date: Tue, 16 Jun 2026 17:22:52 +0800 Subject: [PATCH] =?UTF-8?q?fix(bar):=20=E7=BB=98=E5=88=B6=20cell=20?= =?UTF-8?q?=E6=96=87=E6=9C=AC=E5=89=8D=E6=A0=A1=E9=AA=8C=E5=85=B6=E6=96=87?= =?UTF-8?q?=E6=9C=AC=E9=81=BF=E5=85=8D=E6=B8=B2=E6=9F=93=E7=A9=BA=E5=86=85?= =?UTF-8?q?=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/bar/bar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bar/bar.c b/src/bar/bar.c index 07d23d5..0ab3fec 100644 --- a/src/bar/bar.c +++ b/src/bar/bar.c @@ -309,7 +309,7 @@ static void bar_item_draw( .width = cell_area.width - item->cell_padding * 2, .height = height, }; - if (text_area.width > 0) { + if (text_area.width > 0 && cell->text && cell->text[0] != '\0') { draw_text(cr, ctx, cell->text, &cell->fg, text_area); }