Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/pixbuf/pixbuf-document.c
diff options
context:
space:
mode:
Diffstat (limited to 'pixbuf/pixbuf-document.c')
-rw-r--r--pixbuf/pixbuf-document.c6
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