Graphviz Issue Tracker
Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000528graphvizGraph Librariespublic2004-11-22 16:562011-04-28 04:02
ReporterCeline 
Assigned Togviz 
PrioritynormalSeveritymajorReproducibilityalways
StatusacknowledgedResolutionopen 
PlatformOSx86-Linux-Debian unstableOS Version
Summary0000528: Missing label with multiples call to agwrite
Description



When constructing a graph, a first call to agwrite writes the correct graph.
But if I add nodes later, a later call to agwrite renders a graph without label in further nodes.



File included output.txt is stdout.
Steps To Reproduce

#include <stdio.h>
#include <agraph.h>
int main (int argc, char** argv)
{
    Agraph_t *g;
    Agsym_t *symnlabel;
    g = agopen("Graph",Agundirected, 0);
    symnlabel = agattr(g,AGNODE,"label", "");
    
    char *tmp = "10.0.0.0 label";
    char *tmp2 = agstrdup_html(g, tmp);
    Agnode_t *n = agnode(g, "10.0.0.0",TRUE);
    agxset(n,symnlabel,tmp2);
    agwrite(g, stdout);
    
    tmp = "120.0.0.0 label";
    tmp2 = agstrdup_html(g, tmp);
    Agnode_t *n2 = agnode(g, "120.0.0.0",TRUE);
    agxset(n2,symnlabel,tmp2);

    agwrite(g, stdout);
}

Additional Information

[erg] The use of HTML labels is irrelevant. The same effect occurs
with ordinary strings.
TagsNo tags attached.
AUXILLARY-FILES
DATE-FIXED
FIX-COMMENT
FORMER-ID576
INPUT-FILE
OUTPUT-FILEhttp://www.graphviz.org/bugs/b576.txt [^]
STATUS-COMMENT*
VERSION     1.17.20041122
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

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


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