diff options
Diffstat (limited to 'pixbuf')
-rw-r--r-- | pixbuf/pixbuf-document.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pixbuf/pixbuf-document.c b/pixbuf/pixbuf-document.c index 843df3d..f0c3997 100644 --- a/pixbuf/pixbuf-document.c +++ b/pixbuf/pixbuf-document.c @@ -135,8 +135,10 @@ pixbuf_document_get_page_size (EvDocument *document, { PixbufDocument *pixbuf_document = PIXBUF_DOCUMENT (document); - *width = gdk_pixbuf_get_width (pixbuf_document->pixbuf); - *height = gdk_pixbuf_get_height (pixbuf_document->pixbuf); + if (width) + *width = gdk_pixbuf_get_width (pixbuf_document->pixbuf); + if (height) + *height = gdk_pixbuf_get_height (pixbuf_document->pixbuf); } static void |