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:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user