diff options
author | Matthias Clasen <matthiasc@src.gnome.org> | 2005-08-15 03:57:04 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2005-08-15 03:57:04 +0000 |
commit | 7ab665262976e3e93507b9730ef939645634c6c9 (patch) | |
tree | 77b859dbbb71ccba56fb3de38a98b6a0b71d80da /gtk/updateiconcache.c | |
parent | 329fc5da74317d5a2818a305176dcea9c9f8a9a0 (diff) | |
download | gtk+-7ab665262976e3e93507b9730ef939645634c6c9.tar.gz |
Small fix for svg icons.
Diffstat (limited to 'gtk/updateiconcache.c')
-rw-r--r-- | gtk/updateiconcache.c | 9 |
1 files changed, 8 insertions, 1 deletions
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; } |