2005-01-12 Jeff Muizelaar <jrmuizel@nit.ca>
* pixbuf/pixbuf-document.c: (pixbuf_document_get_page_size):
check for NULL before assigning to width and height parameters
+2005-01-12 Jeff Muizelaar <jrmuizel@nit.ca>
+
+ * pixbuf/pixbuf-document.c: (pixbuf_document_get_page_size):
+
+ check for NULL before assigning to width and height parameters
+
2005-01-12 Jeff Muizelaar <jeff@nit.ca>
* pixbuf/pixbuf-document.c: (pixbuf_document_class_init),
{
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