From 965bab796a71384927c0805af0d123dcf2b22747 Mon Sep 17 00:00:00 2001 From: arif Date: Tue, 3 Nov 2009 18:55:35 +0000 Subject: [PATCH] bug in glpangofont is fixed,output_file removed --- lib/glcomp/glpangofont.c | 6 ------ 1 file changed, 6 deletions(-) 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); } -- 2.40.0