This commit is contained in:
Nishi 2025-12-07 05:23:16 +09:00
commit 0e183f64f2
Signed by: nishi
GPG key ID: 27EF69B208EB9343

View file

@ -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(v != NULL && strcmp(key, MwNbackground) == 0) {
if(value != NULL && strcmp(key, MwNbackground) == 0) {
MwLLColor c = MwParseColor(handle, value);
MwLLSetBackground(handle->lowlevel, c);
MwLLFreeColor(c);