diff options
author | Marco Pesenti Gritti <mpg@redhat.com> | 2005-09-08 11:59:55 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <marco@src.gnome.org> | 2005-09-08 11:59:55 (GMT) |
commit | 9832f65434f957b1374d07e6a645b6b8ac88f459 (patch) | |
tree | 00ec7541bb507f1f41449b2f42367a5e523025e4 /pdf/ev-poppler.cc | |
parent | b1248719129d11eee34d3e3ce43f1a85b883b83c (diff) |
Fix some bugs with xyz links, respect zoom
2005-09-08 Marco Pesenti Gritti <mpg@redhat.com>
* backend/ev-link.c: (ev_link_new_page_xyz):
* pdf/ev-poppler.cc:
* shell/ev-view.c: (goto_xyz_link), (ev_view_goto_link):
Fix some bugs with xyz links, respect zoom
Diffstat (limited to 'pdf/ev-poppler.cc')
-rw-r--r-- | pdf/ev-poppler.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pdf/ev-poppler.cc b/pdf/ev-poppler.cc index 769c78a..414bfb4 100644 --- a/pdf/ev-poppler.cc +++ b/pdf/ev-poppler.cc @@ -705,7 +705,7 @@ pdf_document_links_has_document_links (EvDocumentLinks *document_links) static EvLink * ev_link_from_dest (PopplerAction *action) { - EvLink *link; + EvLink *link = NULL; const char *unimplemented_dest = NULL; switch (action->goto_dest.dest->type) { @@ -747,7 +747,9 @@ ev_link_from_dest (PopplerAction *action) unimplemented_dest); } - link = ev_link_new_page (action->any.title, action->goto_dest.dest->page_num - 1); + if (link == NULL) { + link = ev_link_new_page (action->any.title, action->goto_dest.dest->page_num - 1); + } return link; } |