diff options
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | pdf/xpdf/pdf-document.cc | 4 |
2 files changed, 11 insertions, 0 deletions
@@ -1,3 +1,10 @@ +2005-01-21 Marco Pesenti Gritti <marco@gnome.org> + + * pdf/xpdf/pdf-document.cc: + + Check the links info is initialized before + using it. Should fix a crash on startup. + 2005-01-21 Martin Kretzschmar <martink@gnome.org> * pixbuf/pixbuf-document.c diff --git a/pdf/xpdf/pdf-document.cc b/pdf/xpdf/pdf-document.cc index b9180bd..96b1132 100644 --- a/pdf/xpdf/pdf-document.cc +++ b/pdf/xpdf/pdf-document.cc @@ -1041,6 +1041,10 @@ pdf_document_get_link (EvDocument *document, int x, int y) LinkAction *action; double link_x, link_y; + if (pdf_document->links == NULL) { + return NULL; + } + /* Zoom */ link_x = x / pdf_document->scale; link_y = y / pdf_document->scale; |