From 3b26729b85d267b7bfeb94e0872a71a45f8d732f Mon Sep 17 00:00:00 2001 From: ellson Date: Wed, 2 Feb 2005 03:58:02 +0000 Subject: [PATCH] another oddity only with gcc4 - answer stop using gcc4 --- lib/common/fontmetrics.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/lib/common/fontmetrics.c b/lib/common/fontmetrics.c index 74fccdf1a..6d018540a 100644 --- a/lib/common/fontmetrics.c +++ b/lib/common/fontmetrics.c @@ -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; -- 2.40.0