mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 04:20:27 +01:00
fix an assert crash.
This commit is contained in:
@@ -642,11 +642,10 @@ renderTexture(WMScreen *scr, proplist_t texture, int width, int height,
|
||||
|
||||
str = PLGetString(PLGetArrayElement(texture, 1));
|
||||
|
||||
path = wfindfileinarray(GetObjectForKey("PixmapPath"), str);
|
||||
if (path)
|
||||
if (path = wfindfileinarray(GetObjectForKey("PixmapPath"), str))
|
||||
timage = RLoadImage(rc, path, 0);
|
||||
|
||||
if (!timage) {
|
||||
if (!path || !timage) {
|
||||
wwarning("could not load file '%s': %s", path ? path : str,
|
||||
RMessageForError(RErrorCode));
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user