]> granicus.if.org Git - graphviz/commitdiff
another oddity only with gcc4 - answer stop using gcc4
authorellson <devnull@localhost>
Wed, 2 Feb 2005 03:58:02 +0000 (03:58 +0000)
committerellson <devnull@localhost>
Wed, 2 Feb 2005 03:58:02 +0000 (03:58 +0000)
lib/common/fontmetrics.c

index 74fccdf1a82b2e6cb52a46642b2e8aab6b304556..6d018540ab9aba2fc71733ff4cd8a7c1eb0337e3 100644 (file)
@@ -208,15 +208,7 @@ double textwidth(textline_t * textline, char *fontname, double fontsize)
     cairo_select_font(cr, fontname, 0, 0);
     cairo_scale_font(cr, fontsize);
     cairo_text_extents(cr, textline->str, &extents);
-#if 0
     cairo_destroy(cr);
-#else
-/* FIXME - adding this test mysteriously fixes the mysteriously destroyed cr problem */
-    if (cr)
-       cairo_destroy(cr);
-    else
-       fprintf(stderr,"fontmetrics.c:textwidth() - cr mysteriously destroyed already\n");
-#endif
 
     textline->width = extents.width;
     textline->xshow = NULL;