]> granicus.if.org Git - graphviz/commitdiff
repair non-cgraph case
authorellson <devnull@localhost>
Thu, 23 Oct 2008 20:26:36 +0000 (20:26 +0000)
committerellson <devnull@localhost>
Thu, 23 Oct 2008 20:26:36 +0000 (20:26 +0000)
lib/common/labels.c

index 5ab912b24d1b5a729776fee998f8f28bd4875d57..bff82b5f89674215ccf0c8b4c9182a1f2bb7e2ce 100644 (file)
@@ -149,7 +149,11 @@ textlabel_t *make_label(void *obj, char *str, int kind, double fontsize, char *f
        rv->html = TRUE;
        if (make_html_label(obj, rv)) {
            switch (agobjkind(obj)) {
+#ifndef WITH_CGRAPH
+           case AGGRAPH:
+#else
            case AGRAPH:
+#endif
                agerr(AGPREV, "in label of graph %s\n",agnameof(sg));
                break;
            case AGNODE: