From dd99eca7c5207ad8e76c4a8451797722c893046f Mon Sep 17 00:00:00 2001 From: Moritz Lipp Date: Sat, 16 Jun 2012 09:29:15 +0200 Subject: [PATCH] Fix render_thread_sort --- render.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/render.c b/render.c index 77a9f97..95320c7 100644 --- a/render.c +++ b/render.c @@ -220,9 +220,9 @@ render_thread_sort(gconstpointer a, gconstpointer b, gpointer data) g_object_get(zathura->pages[page_a_index], "last-view", &last_view_a, NULL); g_object_get(zathura->pages[page_b_index], "last-view", &last_view_b, NULL); - if (last_view_a > last_view_b) { + if (last_view_a < last_view_b) { return -1; - } else if (last_view_b > last_view_a) { + } else if (last_view_a > last_view_b) { return 1; }