Handle ZATHURA_LINK_NONE

Thanks to oblique for the patch.

Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
This commit is contained in:
Sebastian Ramacher 2013-02-23 13:54:50 +01:00
parent 9134040300
commit a079b05ddd

View File

@ -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: