Subject: | add_node does not format record shape when defaulted |
When the default node shape is specified as 'record' with
GraphViz->new(node => {shape => 'record'});
then the label text is not formatted into sub-boxes according to the
"{A|B}" syntax. This does work if the shape is specified directly in the
add_node method.
This bug causes schema graphs produced by
SQL::Translator::Producer::GraphViz to be incorrectly formatted.
The attached patch fixes the problem.
(Linux 2.4.21-47.EL, perl 5.0.8, GraphViz-2.02)
Subject: | GraphViz-2.02-1.patch |
diff -ur GraphViz-2.02-orig/lib/GraphViz.pm GraphViz-2.02/lib/GraphViz.pm
--- GraphViz-2.02-orig/lib/GraphViz.pm 2005-01-07 18:24:54.000000000 +0000
+++ GraphViz-2.02/lib/GraphViz.pm 2007-01-04 18:28:36.000000000 +0000
@@ -534,6 +534,7 @@
}
$node = \%node;
}
+ $node->{$_}= $self->{NODE_ATTRS}{$_} for (keys %{$self->{NODE_ATTRS}});
$self->add_node_munge($node) if $self->can('add_node_munge');