mirror of
https://github.com/edeproject/ede.git
synced 2023-08-10 21:13:03 +03:00
Prevent crash when there is no image data
This commit is contained in:
parent
a425c03182
commit
e9f1252feb
@ -66,6 +66,8 @@ static void icon_change_cb(Fl_Button* b, void* d) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void study_and_fill(DesktopIcon* dicon, DesktopIconData* data) {
|
static void study_and_fill(DesktopIcon* dicon, DesktopIconData* data) {
|
||||||
|
data->image = NULL;
|
||||||
|
|
||||||
// get image and scale it if needed
|
// get image and scale it if needed
|
||||||
if(dicon->image()) {
|
if(dicon->image()) {
|
||||||
int iw = dicon->w();
|
int iw = dicon->w();
|
||||||
|
Loading…
Reference in New Issue
Block a user