summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libcaja-private/caja-file.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/libcaja-private/caja-file.c b/libcaja-private/caja-file.c
index 1bb34b16..1b3bf220 100644
--- a/libcaja-private/caja-file.c
+++ b/libcaja-private/caja-file.c
@@ -4611,10 +4611,9 @@ caja_file_get_icon (CajaFile *file,
and for images with no alpha channel. */
gboolean is_image = file->details->mime_type &&
(strncmp (file->details->mime_type, "image/", 6) == 0);
- if (!is_image ||
- is_image && !gdk_pixbuf_get_has_alpha (raw_pixbuf)) {
- caja_ui_frame_image (&scaled_pixbuf);
- }
+ if (!is_image || !gdk_pixbuf_get_has_alpha (raw_pixbuf)) {
+ caja_ui_frame_image (&scaled_pixbuf);
+ }
g_object_unref (raw_pixbuf);