]> granicus.if.org Git - graphviz/commitdiff
suppress warning message about cairo surfaces with zero area as this seems to happen...
authorellson <devnull@localhost>
Thu, 17 Feb 2011 14:20:23 +0000 (14:20 +0000)
committerellson <devnull@localhost>
Thu, 17 Feb 2011 14:20:23 +0000 (14:20 +0000)
plugin/pango/gvrender_pango.c

index 34e3eae9dc3efdf5d9cd9f46530cac29d38bcdf6..df9025f4c69b958c3178a2bbe139dd62c59bf200 100644 (file)
@@ -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;