1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-19 12:28:22 +01:00

fix an assert crash.

This commit is contained in:
id
1999-12-11 21:22:56 +00:00
parent c2cbce6d84
commit c4c42d9ff6

View File

@@ -642,11 +642,10 @@ renderTexture(WMScreen *scr, proplist_t texture, int width, int height,
str = PLGetString(PLGetArrayElement(texture, 1)); str = PLGetString(PLGetArrayElement(texture, 1));
path = wfindfileinarray(GetObjectForKey("PixmapPath"), str); if (path = wfindfileinarray(GetObjectForKey("PixmapPath"), str))
if (path) timage = RLoadImage(rc, path, 0);
timage = RLoadImage(rc, path, 0);
if (!timage) { if (!path || !timage) {
wwarning("could not load file '%s': %s", path ? path : str, wwarning("could not load file '%s': %s", path ? path : str,
RMessageForError(RErrorCode)); RMessageForError(RErrorCode));
} else { } else {