From: arif Date: Tue, 3 Nov 2009 18:55:35 +0000 (+0000) Subject: bug in glpangofont is fixed,output_file removed X-Git-Tag: LAST_LIBGRAPH~32^2~1606 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=965bab796a71384927c0805af0d123dcf2b22747;p=graphviz bug in glpangofont is fixed,output_file removed --- diff --git a/lib/glcomp/glpangofont.c b/lib/glcomp/glpangofont.c index 94e42e22e..1f3d73e3f 100644 --- a/lib/glcomp/glpangofont.c +++ b/lib/glcomp/glpangofont.c @@ -192,18 +192,12 @@ unsigned char *create_pango_texture(char *fontdescription, int fontsize, //draw the text pango_cairo_show_layout(cr, layout); - output_file = fopen("c:/graphviz-ms/test_folder/test.png", "wb+"); - if (output_file) { - cairo_surface_write_to_png_stream(surface, writer, output_file); - - } *w = (int) width; *h = (int) height; g_object_unref(layout); cairo_destroy(cr); - fclose(output_file); return cairo_image_surface_get_data(surface); }