mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-28 19:36:00 +01:00
Fix render_thread_sort
This commit is contained in:
parent
2acd67c142
commit
dd99eca7c5
1 changed files with 2 additions and 2 deletions
4
render.c
4
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue