From: ellson Date: Thu, 17 Feb 2011 14:20:23 +0000 (+0000) Subject: suppress warning message about cairo surfaces with zero area as this seems to happen... X-Git-Tag: LAST_LIBGRAPH~32^2~1028 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=82cd414a00da523056f4cf99c0e40f9871a8301c;p=graphviz suppress warning message about cairo surfaces with zero area as this seems to happen normally with -Tx11 --- diff --git a/plugin/pango/gvrender_pango.c b/plugin/pango/gvrender_pango.c index 34e3eae9d..df9025f4c 100644 --- a/plugin/pango/gvrender_pango.c +++ b/plugin/pango/gvrender_pango.c @@ -198,7 +198,9 @@ static void cairogen_end_page(GVJ_t * job) surface = cairo_get_target(cr); if (cairo_image_surface_get_width(surface) == 0 || cairo_image_surface_get_height(surface) == 0) { /* apparently cairo never allocates a surface if nothing was ever written to it */ +/* but suppress this error message since a zero area surface seems to happen during normal operations, particular in -Tx11 fprintf(stderr, "ERROR: cairo surface has zero area, this may indicate some problem during rendering shapes.\n"); + - jce */ } job->imagedata = (char *)(cairo_image_surface_get_data(surface)); break;