[kgraphviewer-devel] Review Request: Fix syntax error in a .dot file

Ivan Brezina ibre5041 at ibrezina.net
Tue Oct 25 13:58:40 UTC 2011


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/102968/
-----------------------------------------------------------

Review request for KGraphViewer.


Description
-------

An attribute ID is not allowed for subgraph. But graph in subgraph can have it's own ID.

For example this file has syntax error in it:
digraph "unnamed" {
graph [fontsize="11",id="unnamed"]
subgraph cluster_X1  {id="cluster_X1",label="X1",cluster_X1_T1_1
[comment="T1",fontsize="10",id="cluster_X1_T1_1",label="T1",name="T1"];
}
}
 
While this one is correct:
digraph "unnamed" {
graph [fontsize="11",id="unnamed"]
subgraph cluster_X1  {
graph[id="cluster_X1",label="X1"]
cluster_X1_T1_1
[comment="T1",fontsize="10",id="cluster_X1_T1_1",label="T1",name="T1"];
}
}


Diffs
-----

  src/part/graphelement.cpp bc409f8 
  src/part/graphsubgraph.cpp 07bc8db 

Diff: http://git.reviewboard.kde.org/r/102968/diff/diff


Testing
-------


Thanks,

Ivan Brezina

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kgraphviewer-devel/attachments/20111025/fa50518a/attachment.html>


More information about the kgraphviewer-devel mailing list