]> granicus.if.org Git - graphviz/commitdiff
Fix bug 1219
authorerg <devnull@localhost>
Wed, 31 Oct 2007 17:34:04 +0000 (17:34 +0000)
committererg <devnull@localhost>
Wed, 31 Oct 2007 17:34:04 +0000 (17:34 +0000)
plugin/gd/gvtextlayout_gd.c

index 99c06749d367d9abf2b4a129a0f196641ae35564..f00560633f44d7857c6c4eb545dbb2a81b5660bd 100644 (file)
@@ -23,6 +23,9 @@
 #include <string.h>
 #include "gvplugin_textlayout.h"
 
+typedef enum { AGWARN, AGERR, AGMAX, AGPREV } agerrlevel_t;
+extern int agerr(agerrlevel_t level, char *fmt, ...);
+
 #ifdef HAVE_LIBGD
 #include "gd.h"
 
@@ -145,7 +148,7 @@ static boolean gd_textlayout(textpara_t * para, char **fontpath)
                                fontsize, 0, 0, 0, para->str, &strex);
 
        if (err) {
-           fprintf(stderr,"%s\n", err);
+           agerr(AGERR,"%s\n", err);
            return FALSE; /* indicate error */
        }