Fix thumbnail images and HTML labels for relationship graph (Graphviz).
svn: r9604
This commit is contained in:
parent
2faff1abfb
commit
935f32acff
@ -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>
|
2007-12-27 Brian Matherly <brian@gramps-project.org>
|
||||||
* src/ReportBase/_GraphvizReportDialog.py: Fix Graphviz generated PDF.
|
* src/ReportBase/_GraphvizReportDialog.py: Fix Graphviz generated PDF.
|
||||||
|
|
||||||
|
@ -214,7 +214,12 @@ class GVDocBase(BaseDoc.BaseDoc,BaseDoc.GVDoc):
|
|||||||
Implementes BaseDoc.GVDoc.add_node().
|
Implementes BaseDoc.GVDoc.add_node().
|
||||||
"""
|
"""
|
||||||
line = ' "%s" [' % id
|
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:
|
if shape:
|
||||||
line += ', shape="%s"' % shape
|
line += ', shape="%s"' % shape
|
||||||
|
@ -220,9 +220,6 @@ class RelGraphReport(Report):
|
|||||||
dirpath = dirpath.lower()
|
dirpath = dirpath.lower()
|
||||||
url = "%s/%s.html" % (dirpath,h)
|
url = "%s/%s.html" % (dirpath,h)
|
||||||
|
|
||||||
if self.bUseHtmlOutput:
|
|
||||||
label = '<%s>' % label
|
|
||||||
|
|
||||||
self.doc.add_node(p_id,label,shape,color,style,fill)
|
self.doc.add_node(p_id,label,shape,color,style,fill)
|
||||||
|
|
||||||
# Output families where person is a parent
|
# Output families where person is a parent
|
||||||
|
Loading…
Reference in New Issue
Block a user