Graphviz Issue Tracker
Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001447graphvizGraph Librariespublic2008-10-15 18:492011-04-28 04:03
Reporteruser442 
Assigned Tonorth 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOS*-*-OS Version
Summary0001447: cgraph loses attributes when printing subgraph
Description



When writing a subgraph using cgraph, (node) attributes are lost.
This worked in 2.20.
Steps To Reproduce

#include <cgraph.h>
#include <stdio.h>

main ()
{
  Agraph_t* g = agopen("G", Agdirected, &AgDefaultDisc);
  Agnode_t* t = agnode(g, "tail", 1);
  Agraph_t* sg = agsubg(g, "seen", 1);

  agsafeset(t, "color", "red", "");
  agsubnode (sg, t, 1);

  agwrite (g, stdout);
  agwrite (sg, stdout);
}
Additional Information

[erg] The output is

<CD>
digraph G {
        subgraph seen {
                tail [color=red];
        }
}
digraph seen {
        tail;
}
</CD>

TagsNo tags attached.
AUXILLARY-FILES
DATE-FIXED
FIX-COMMENT
FORMER-ID1484
INPUT-FILE
OUTPUT-FILE
STATUS-COMMENTFixed (20 Oct 2008)
VERSION     2.21
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2011-04-28 04:03 user1 New Issue
2011-04-28 04:03 user1 Assigned To => Stephen North


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