]> granicus.if.org Git - graphviz/commitdiff
Use a local copy of Agdirected because linkage doesn't work with the
authorEmden R. Gansner <erg@alum.mit.edu>
Thu, 10 Oct 2013 19:42:25 +0000 (15:42 -0400)
committerEmden R. Gansner <erg@alum.mit.edu>
Thu, 10 Oct 2013 19:42:25 +0000 (15:42 -0400)
release version of Windows.

lib/common/htmltable.c

index f36ae7636235609a419f0e345df2630575ab36f8..039eb6780c7df7af48f8878d15da12729428bf3b 100644 (file)
@@ -1490,6 +1490,7 @@ void makeGraphs(htmltbl_t * tbl, graph_t * rowg, graph_t * colg)
 #else
        e = agedge(rowg, t, h);
 #endif
+
        y = 0;
        for (r = 0; r < cp->rspan; r++)
            y += minr[cp->row + r];
@@ -1548,6 +1549,9 @@ void sizeArray(htmltbl_t * tbl)
 {
     graph_t *rowg;
     graph_t *colg;
+#ifdef WIN32
+    Agdesc_t dir = { 1, 0, 0, 1 };
+#endif
 
     /* Do the 1D cases by hand */
     if ((tbl->rc == 1) || (tbl->cc == 1)) {
@@ -1559,8 +1563,13 @@ void sizeArray(htmltbl_t * tbl)
     tbl->widths = N_NEW(tbl->cc + 1, int);
 
 #ifdef WITH_CGRAPH
+#ifdef WIN32
+    rowg = agopen("rowg", dir, NIL(Agdisc_t *));
+    colg = agopen("colg", dir, NIL(Agdisc_t *));
+#else
     rowg = agopen("rowg", Agdirected, NIL(Agdisc_t *));
     colg = agopen("colg", Agdirected, NIL(Agdisc_t *));
+#endif
     /* Only need GD_nlist */
     agbindrec(rowg, "Agraphinfo_t", sizeof(Agraphinfo_t), TRUE);       // graph custom data
     agbindrec(colg, "Agraphinfo_t", sizeof(Agraphinfo_t), TRUE);       // graph custom data