changeset 994:c879a4c14f33

Fixed segfaulting when alter image in directory without images.
author bruclik
date Mon, 25 Aug 2008 18:13:33 +0000
parents aed46ba2eb9b
children 6ca2c5fd7b13
files src/image.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/image.c	Mon Aug 25 16:58:27 2008 +0000
+++ b/src/image.c	Mon Aug 25 18:13:33 2008 +0000
@@ -339,7 +339,7 @@
 	static const gint flip[]         = {1,   4, 3, 2, 1, 8, 7, 6, 5};
 
 
-	if (!imd || !imd->pr) return;
+	if (!imd || !imd->pr || !imd->image_fd) return;
 
 	if (imd->orientation < 1 || imd->orientation > 8) imd->orientation = 1;