allow null value
This commit is contained in:
parent
d5336dd38c
commit
d4887f4940
1 changed files with 1 additions and 1 deletions
|
|
@ -377,7 +377,7 @@ void MwSetText(MwWidget handle, const char* key, const char* value) {
|
||||||
shput(handle->text, key, v);
|
shput(handle->text, key, v);
|
||||||
}
|
}
|
||||||
if(handle->prop_event) MwDispatch3(handle, prop_change, key);
|
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);
|
MwLLColor c = MwParseColor(handle, value);
|
||||||
MwLLSetBackground(handle->lowlevel, c);
|
MwLLSetBackground(handle->lowlevel, c);
|
||||||
MwLLFreeColor(c);
|
MwLLFreeColor(c);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue