diff src/layout_image.c @ 1701:2309e6150e8c

do not try to reload deleted image deleted image is replaced by the next one from the list, keep the old image displayed until the new one is set
author nadvornik
date Fri, 24 Jul 2009 12:56:54 +0000
parents bfe04f01de5e
children caf0e4b8319d
line wrap: on
line diff
--- a/src/layout_image.c	Fri Jul 24 12:45:42 2009 +0000
+++ b/src/layout_image.c	Fri Jul 24 12:56:54 2009 +0000
@@ -1879,9 +1879,11 @@
 				layout_image_set_collection(lw, cd, new);
 				return;
 				}
+			layout_image_set_fd(lw, NULL);
 			}
-
-		layout_image_set_fd(lw, NULL);
+			
+		/* the image will be set to the next image from the list soon,  
+		   setting it to NULL here is not necessary*/
 		}
 }