changeset 994:31599bda74c7

Fixed segfaulting when alter image in directory without images.
author Petr Ostadal <postadal@suse.cz>
date Mon, 25 Aug 2008 18:13:33 +0000
parents 3ef34e7d9f96
children 401cd18f8d38
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;