From d4887f4940596a2aa57eae3e2d30ee8f1571e70a Mon Sep 17 00:00:00 2001 From: NishiOwO Date: Sun, 7 Dec 2025 05:22:52 +0900 Subject: [PATCH] allow null value --- src/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core.c b/src/core.c index b1be64b..8f11722 100644 --- a/src/core.c +++ b/src/core.c @@ -377,7 +377,7 @@ void MwSetText(MwWidget handle, const char* key, const char* value) { shput(handle->text, key, v); } if(handle->prop_event) MwDispatch3(handle, prop_change, key); - if(strcmp(key, MwNbackground) == 0) { + if(v != NULL && strcmp(key, MwNbackground) == 0) { MwLLColor c = MwParseColor(handle, value); MwLLSetBackground(handle->lowlevel, c); MwLLFreeColor(c);