From e9f1252feba6e13c5e728b6b24267c45adbd56a8 Mon Sep 17 00:00:00 2001 From: Sanel Zukan Date: Sat, 11 Jul 2009 10:45:06 +0000 Subject: [PATCH] Prevent crash when there is no image data --- ede-desktop/IconProperties.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ede-desktop/IconProperties.cpp b/ede-desktop/IconProperties.cpp index 635f99d..70be918 100644 --- a/ede-desktop/IconProperties.cpp +++ b/ede-desktop/IconProperties.cpp @@ -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();