From 24c940e6186f27bc62a5f29c51605f315e10ea0f Mon Sep 17 00:00:00 2001 From: g Date: Sat, 3 Jan 2004 11:33:52 +0000 Subject: [PATCH] Fix first image detection. git-svn-id: file:///srv/svn/gliv/trunk@201 dbf4865f-1ec6-0310-8412-f61adeb1ccb1 committer: g --- src/next_image.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/next_image.c b/src/next_image.c index 425105f..b42c20a 100644 --- a/src/next_image.c +++ b/src/next_image.c @@ -145,6 +145,7 @@ const gchar *get_image_notice(void) static void render_next_image(GlivImage * im) { gfloat *old_matrix; + gboolean first_image = current_image == NULL; old_matrix = prepare_rendering(im); @@ -165,7 +166,7 @@ static void render_next_image(GlivImage * im) if (im->node->next == NULL) image_notice(TRUE); - else if (im->node->prev == NULL && current_image != NULL) + else if (im->node->prev == NULL && first_image == FALSE) image_notice(FALSE); } -- 2.11.4.GIT