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
1 changed files with 2 additions and 0 deletions

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) {
data->image = NULL;
// get image and scale it if needed
if(dicon->image()) {
int iw = dicon->w();