mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-11-13 07:43:46 +01:00
Fix render_thread_sort
This commit is contained in:
parent
2acd67c142
commit
dd99eca7c5
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_a_index], "last-view", &last_view_a, NULL);
|
||||||
g_object_get(zathura->pages[page_b_index], "last-view", &last_view_b, 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;
|
return -1;
|
||||||
} else if (last_view_b > last_view_a) {
|
} else if (last_view_a > last_view_b) {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user