+2009-02-01 Carlos Garcia Campos <carlosgc@gnome.org>
+
+ * backend/pdf/ev-poppler.cc: (ev_link_dest_from_dest):
+
+ Clamp top/bottom values of destinations to make sure they are not
+ bigger than the page height. Fixes bug #569327.
+
2009-02-01 Carlos Garcia Campos <carlosgc@gnome.org>
* libdocument/ev-debug.h:
poppler_page_get_size (poppler_page, NULL, &height);
ev_dest = ev_link_dest_new_xyz (dest->page_num - 1,
dest->left,
- height - dest->top,
+ height - MIN (height, dest->top),
dest->zoom,
dest->change_left,
dest->change_top,
MAX (0, dest->page_num - 1));
poppler_page_get_size (poppler_page, NULL, &height);
ev_dest = ev_link_dest_new_fith (dest->page_num - 1,
- height - dest->top,
+ height - MIN (height, dest->top),
dest->change_top);
g_object_unref (poppler_page);
}
poppler_page_get_size (poppler_page, NULL, &height);
ev_dest = ev_link_dest_new_fitr (dest->page_num - 1,
dest->left,
- height - dest->bottom,
+ height - MIN (height, dest->bottom),
dest->right,
- height - dest->top);
+ height - MIN (height, dest->top));
g_object_unref (poppler_page);
}
break;