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

another assert crash.

This commit is contained in:
id
1999-12-11 21:37:58 +00:00
parent c4c42d9ff6
commit adaa3e0aeb

View File

@@ -926,15 +926,17 @@ SetTexturePanelTexture(TexturePanel *panel, char *name, proplist_t texture)
WMSetTextFieldText(panel->imageT, WMSetTextFieldText(panel->imageT,
PLGetString(PLGetArrayElement(texture, 1))); PLGetString(PLGetArrayElement(texture, 1)));
if (panel->imageFile) if (panel->imageFile)
free(panel->imageFile); free(panel->imageFile);
panel->imageFile = wfindfileinarray(panel->pathList, if (panel->imageFile = wfindfileinarray(panel->pathList,
PLGetString(PLGetArrayElement(texture, 1))); PLGetString(PLGetArrayElement(texture, 1)))) {
panel->image = RLoadImage(WMScreenRContext(scr), panel->imageFile, 0); panel->image = RLoadImage(WMScreenRContext(scr), panel->imageFile, 0);
updateTGradImage(panel); updateTGradImage(panel);
updateSGradButtons(panel); updateSGradButtons(panel);
} else wwarning("could not load file '%s': %s", panel->imageFile,
RMessageForError(RErrorCode));
/*...............................................*/ /*...............................................*/
} else if (strcasecmp(type, "mhgradient")==0 } else if (strcasecmp(type, "mhgradient")==0