From 7ab665262976e3e93507b9730ef939645634c6c9 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 15 Aug 2005 03:57:04 +0000 Subject: [PATCH] Small fix for svg icons. --- gtk/updateiconcache.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/gtk/updateiconcache.c b/gtk/updateiconcache.c index f38dde7352..ae2c38d612 100644 --- a/gtk/updateiconcache.c +++ b/gtk/updateiconcache.c @@ -869,7 +869,14 @@ write_bucket (FILE *cache, HashNode *node, int *offset) } else { - if (!write_card32 (cache, image->image_data->offset)) + gint offset; + + if (image->image_data) + offset = image->image_data->offset; + else + offset = 0; + + if (!write_card32 (cache, offset)) return FALSE; }