Prevent crash when there is no image data

This commit is contained in:
Sanel Zukan 2009-07-11 10:45:06 +00:00
parent a425c03182
commit e9f1252feb

View File

@ -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();