mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-29 13:35:59 +01:00
Fix index check.
This commit is contained in:
parent
25320f5265
commit
b30d021ca0
1 changed files with 1 additions and 1 deletions
|
@ -477,7 +477,7 @@ zathura_page_widget_link_get(ZathuraPage* widget, unsigned int index)
|
|||
g_return_val_if_fail(priv != NULL, NULL);
|
||||
|
||||
if (priv->links != NULL && index >= priv->link_offset &&
|
||||
girara_list_size(priv->links) >= index - priv->link_offset) {
|
||||
girara_list_size(priv->links) > index - priv->link_offset) {
|
||||
return girara_list_nth(priv->links, index - priv->link_offset);
|
||||
} else {
|
||||
return NULL;
|
||||
|
|
Loading…
Reference in a new issue