mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-29 13:56:00 +01:00
Handle ZATHURA_LINK_NONE
Thanks to oblique for the patch. Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
This commit is contained in:
parent
9134040300
commit
a079b05ddd
1 changed files with 2 additions and 0 deletions
2
links.c
2
links.c
|
@ -30,6 +30,7 @@ zathura_link_new(zathura_link_type_t type, zathura_rectangle_t position,
|
|||
link->position = position;
|
||||
|
||||
switch (type) {
|
||||
case ZATHURA_LINK_NONE:
|
||||
case ZATHURA_LINK_GOTO_DEST:
|
||||
link->target = target;
|
||||
|
||||
|
@ -64,6 +65,7 @@ zathura_link_free(zathura_link_t* link)
|
|||
}
|
||||
|
||||
switch (link->type) {
|
||||
case ZATHURA_LINK_NONE:
|
||||
case ZATHURA_LINK_GOTO_DEST:
|
||||
case ZATHURA_LINK_GOTO_REMOTE:
|
||||
case ZATHURA_LINK_URI:
|
||||
|
|
Loading…
Reference in a new issue