summaryrefslogtreecommitdiff
path: root/libnautilus-private/nautilus-thumbnails.c
diff options
context:
space:
mode:
Diffstat (limited to 'libnautilus-private/nautilus-thumbnails.c')
-rw-r--r--libnautilus-private/nautilus-thumbnails.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/libnautilus-private/nautilus-thumbnails.c b/libnautilus-private/nautilus-thumbnails.c
index 2df7d4526..389ea2798 100644
--- a/libnautilus-private/nautilus-thumbnails.c
+++ b/libnautilus-private/nautilus-thumbnails.c
@@ -570,11 +570,7 @@ make_thumbnails (gpointer data)
if (nautilus_file_is_mime_type (file, "image/svg")) {
thumbnail_path = gnome_vfs_get_local_path_from_uri (info->thumbnail_uri);
if (thumbnail_path != NULL) {
- FILE *f = fopen (thumbnail_path, "rb");
- if (f != NULL) {
- full_size_image = rsvg_render_file (f, 1.0);
- fclose (f);
- }
+ full_size_image = rsvg_pixbuf_from_file (thumbnail_path, NULL);
}
#ifdef HAVE_LIBJPEG
} else if (nautilus_file_is_mime_type (file, "image/jpeg")) {