mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-11-14 19:33:45 +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
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;
|
link->position = position;
|
||||||
|
|
||||||
switch (type) {
|
switch (type) {
|
||||||
|
case ZATHURA_LINK_NONE:
|
||||||
case ZATHURA_LINK_GOTO_DEST:
|
case ZATHURA_LINK_GOTO_DEST:
|
||||||
link->target = target;
|
link->target = target;
|
||||||
|
|
||||||
@ -64,6 +65,7 @@ zathura_link_free(zathura_link_t* link)
|
|||||||
}
|
}
|
||||||
|
|
||||||
switch (link->type) {
|
switch (link->type) {
|
||||||
|
case ZATHURA_LINK_NONE:
|
||||||
case ZATHURA_LINK_GOTO_DEST:
|
case ZATHURA_LINK_GOTO_DEST:
|
||||||
case ZATHURA_LINK_GOTO_REMOTE:
|
case ZATHURA_LINK_GOTO_REMOTE:
|
||||||
case ZATHURA_LINK_URI:
|
case ZATHURA_LINK_URI:
|
||||||
|
Loading…
Reference in New Issue
Block a user