]> granicus.if.org Git - graphviz/commitdiff
fix the non-fontconfig code
authorellson <devnull@localhost>
Fri, 7 Mar 2008 20:27:22 +0000 (20:27 +0000)
committerellson <devnull@localhost>
Fri, 7 Mar 2008 20:27:22 +0000 (20:27 +0000)
plugin/pango/gvtextlayout_pango.c

index 71d02bce2bf8ae04262534f461be1a60ae7db700..6cfe6c8d68647fefb8aa3844d186644486ff3c68 100644 (file)
@@ -124,12 +124,17 @@ static boolean pango_textlayout(textpara_t * para, char **fontpath)
                    strcat(buf, "*not using fontconfig*");
            }
 #else
-           tdesc = pango_font_describe(font);
-           tfont = pango_font_description_to_string(tdesc);
-           strcat(buf, "\"");
-           strcat(buf, tfont);
-           strcat(buf, "\" ");
-           g_free(tfont);
+           {
+               PangoFontDescription *tdesc;
+               char *tfont;
+               
+               tdesc = pango_font_describe(font);
+               tfont = pango_font_description_to_string(tdesc);
+               strcat(buf, "\"");
+               strcat(buf, tfont);
+               strcat(buf, "\" ");
+               g_free(tfont);
+           }
 #endif
             *fontpath = buf;
         }