File cairo-1.10.2-onzin.patch of Package mingw32-cairo

diff -Naur cairo-1.10.2.orig/src/cairo-surface.c cairo-1.10.2/src/cairo-surface.c
--- cairo-1.10.2.orig/src/cairo-surface.c	2010-12-25 15:21:34.000000000 +0100
+++ cairo-1.10.2/src/cairo-surface.c	2011-07-01 16:25:08.640554393 +0200
@@ -2482,7 +2482,7 @@
     cairo_bool_t bounded;
 
     bounded = FALSE;
-    if (surface->backend->get_extents != NULL)
+    if ((surface->backend != NULL) && (surface->backend->get_extents != NULL))
 	bounded = surface->backend->get_extents (surface, extents);
 
     if (! bounded)
openSUSE Build Service is sponsored by