mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 20:38:08 +01:00
another assert crash.
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user