mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-21 21:38:00 +01:00
Fixed crashing bug in WPrefs.app's appereance section.
This commit is contained in:
@@ -434,7 +434,7 @@ isPixmap(proplist_t prop)
|
|||||||
{
|
{
|
||||||
proplist_t p;
|
proplist_t p;
|
||||||
char *s;
|
char *s;
|
||||||
|
|
||||||
p = PLGetArrayElement(prop, 0);
|
p = PLGetArrayElement(prop, 0);
|
||||||
s = PLGetString(p);
|
s = PLGetString(p);
|
||||||
if (strcasecmp(&s[1], "pixmap")==0)
|
if (strcasecmp(&s[1], "pixmap")==0)
|
||||||
@@ -1970,7 +1970,8 @@ setupTextureFor(WMList *list, char *key, char *defValue, char *title,
|
|||||||
|
|
||||||
titem->title = wstrdup(title);
|
titem->title = wstrdup(title);
|
||||||
titem->prop = GetObjectForKey(key);
|
titem->prop = GetObjectForKey(key);
|
||||||
if (!titem->prop) {
|
if (!titem->prop || !PLIsArray(titem->prop)) {
|
||||||
|
/* Maybe also give a error message to stderr that the entry is bad? */
|
||||||
titem->prop = PLGetProplistWithDescription(defValue);
|
titem->prop = PLGetProplistWithDescription(defValue);
|
||||||
} else {
|
} else {
|
||||||
PLRetain(titem->prop);
|
PLRetain(titem->prop);
|
||||||
|
|||||||
Reference in New Issue
Block a user