Graphviz Issue Tracker
Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0002395graphvizCircopublic2013-11-27 18:192013-11-28 13:55
ReporterMike M 
Assigned Toerg 
PrioritynormalSeverityfeatureReproducibilityalways
StatusresolvedResolutionfixed 
PlatformallOSallOS Versionall
Summary0002395: Patch to allow rescale of circo
DescriptionI use Graphviz as a library, and with this I want to layout one graph several times. When using circo it is currently not possible ro rescale the graph using the mindist attribute. This patch would solve this, could you please integrate it? (relative to 2.34)

Thank you.

@@ -40,12 +40,6 @@
     state->blockCount = 0;
     rootg = rg;
 #ifndef WITH_CGRAPH
- G_mindist = agfindattr(rootg, "mindist");
-#else /* WITH_CGRAPH */
- G_mindist = agattr(rootg,AGRAPH, "mindist", NULL);
-#endif /* WITH_CGRAPH */
- min_dist = late_double(rootg, G_mindist, MINDIST, 0.0);
-#ifndef WITH_CGRAPH
     N_artpos = agfindattr(rootg->proto->n, "articulation_pos");
     N_root = agfindattr(rootg->proto->n, "root");
 #else /* WITH_CGRAPH */
@@ -54,6 +48,14 @@
 #endif /* WITH_CGRAPH */
     rootname = agget(rootg, "root");
     }
+
+#ifndef WITH_CGRAPH
+ G_mindist = agfindattr(rootg, "mindist");
+#else /* WITH_CGRAPH */
+ G_mindist = agattr(rootg,AGRAPH, "mindist", NULL);
+#endif /* WITH_CGRAPH */
+ min_dist = late_double(rootg, G_mindist, MINDIST, 0.0);
+
     initBlocklist(&state->bl);
     state->orderCount = 1;
     state->min_dist = min_dist;
TagsNo tags attached.
AUXILLARY-FILES
DATE-FIXED
FIX-COMMENT
FORMER-ID
INPUT-FILE
OUTPUT-FILE
STATUS-COMMENT
VERSION2.34
Attached Files

- Relationships

-  Notes
User avatar (0000608)
erg (administrator)
2013-11-28 13:55

Patch applied. Thanks.

- Issue History
Date Modified Username Field Change
2013-11-27 18:19 Mike M New Issue
2013-11-28 13:55 erg Note Added: 0000608
2013-11-28 13:55 erg Assigned To => erg
2013-11-28 13:55 erg Status new => resolved
2013-11-28 13:55 erg Resolution open => fixed


MantisBT 1.2.5[^]
Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker