Fix thumbnail images and HTML labels for relationship graph (Graphviz).

svn: r9604
This commit is contained in:
Brian Matherly 2007-12-27 22:23:40 +00:00
parent 2faff1abfb
commit 935f32acff
3 changed files with 10 additions and 4 deletions

View File

@ -1,3 +1,7 @@
2007-12-27 Brian Matherly <brian@gramps-project.org>
* src/ReportBase/_GraphvizReportDialog.py:
* src/plugins/GVRelGraph.py: fix thumbnail images and HTML output.
2007-12-27 Brian Matherly <brian@gramps-project.org>
* src/ReportBase/_GraphvizReportDialog.py: Fix Graphviz generated PDF.

View File

@ -214,7 +214,12 @@ class GVDocBase(BaseDoc.BaseDoc,BaseDoc.GVDoc):
Implementes BaseDoc.GVDoc.add_node().
"""
line = ' "%s" [' % id
line += 'label="%s"' % label
if label.startswith("<"):
# This must be HTML
line += 'label=<%s>' % label
else:
line += 'label="%s"' % label
if shape:
line += ', shape="%s"' % shape

View File

@ -220,9 +220,6 @@ class RelGraphReport(Report):
dirpath = dirpath.lower()
url = "%s/%s.html" % (dirpath,h)
if self.bUseHtmlOutput:
label = '<%s>' % label
self.doc.add_node(p_id,label,shape,color,style,fill)
# Output families where person is a parent