]> granicus.if.org Git - graphviz/commitdiff
Got the cgraph/graph calls in the wrong order.
authorEmden Gansner <erg@research.att.com>
Wed, 1 Aug 2012 19:36:10 +0000 (15:36 -0400)
committerEmden Gansner <erg@research.att.com>
Wed, 1 Aug 2012 19:36:10 +0000 (15:36 -0400)
macosx/GVGraph.m

index bf305b1c5aae4b9b5f3b13758abede918a224ae9..b4479bfe3ccff34c1407633c512a988011ee7163 100644 (file)
@@ -89,9 +89,9 @@ extern char *gvplugin_list(GVC_t * gvc, api_t api, const char *str);
                                        ptr = strrchr(parentDir,'/');
                                        *ptr = 0;
 #ifdef WITH_CGRAPH
-                                       agraphattr(_graph,"imagepath",parentDir);
-#else
                                        agattr(_graph,AGRAPH,"imagepath",parentDir);
+#else
+                                       agraphattr(_graph,"imagepath",parentDir);
 #endif
                        }
                        fclose(file);