Graphviz Issue Tracker
Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0002073graphvizDotpublic2011-04-01 09:542011-04-28 04:03
ReporterPeter Ward 
Assigned Toerg 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSx86-Windows-7OS Version
Summary0002073: Conflict between node label and URL when creating cmapx
Description



Generating cmapx seems to go wrong with node labels.



With source file
<CD>
digraph delivery {
stm [shape=rectangle;URL=<uispin?_resource=stm>];
abc [shape=rectangle;URL=<uispin?_resource=abc>];
}
</CD>
the map file is as expected:



<CD>
<map id="delivery" name="delivery">
<area shape="rect" id="node1" href="uispin?_resource=stm" title="stm" alt="" coords="103,7,175,55"/>
<area shape="rect" id="node2" href="uispin?_resource=abc" title="abc" alt="" coords="7,87,79,135"/>
</map>
</CD>



but adding labels:



<CD>
digraph delivery {
stm [shape=rectangle;label="STM";URL=<uispin?_resource=stm>];
abc [shape=rectangle;label="ABC";URL=<uispin?_resource=abc>];
}
</CD>



map now only contains one entry, covering the whole image:
<CD>
<map id="delivery" name="delivery">
<area shape="rect" id="graph1" href="uispin?_resource=abc" alt="" coords="0,0,181,141"/>
</map>
</CD>
Steps To Reproduce

digraph delivery {
stm [shape=rectangle;label="STM";URL=<uispin?_resource=stm>];
abc [shape=rectangle;label="ABC";URL=<uispin?_resource=abc>];
}
Additional Information

Perhaps I am missing something in the manual.
The node labels appear to be derived from the URL,
but this is not in general suitable.

[erg]
Regardless of how I run your dot -Tcmapx on your graph (using gvedit, cmd, cygwin shell), dot reports an
error, due to the incorrect syntax in the input. dot still creates output but it can't be trusted if errors are
reported.

If you fix the errors (attribute lists are comma-separated, not semicolon-separated),

<CD>
digraph delivery {
stm [shape=rectangle,label="STM",URL=<uispin?_resource=stm>];
abc [shape=rectangle,label="ABC",URL=<uispin?_resource=abc>];
}
</D>


you will get the correct output

<CD>
<map id="delivery" name="delivery">
<area shape="rect" id="node1" href="uispin?_resource=stm" title="STM" alt="" coords="5,5,77,53"/>
<area shape="rect" id="node2" href="uispin?_resource=abc" title="ABC" alt="" coords="101,5,173,53"/>
</map>
</D>

TagsNo tags attached.
AUXILLARY-FILES
DATE-FIXED
FIX-COMMENT
FORMER-ID2161
INPUT-FILE
OUTPUT-FILE
STATUS-COMMENTFixed (1 April 2011)
VERSION     2.26.3
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 => erg


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