From b0eb712933007f9aca18c0f9286ef0bf9d00697c Mon Sep 17 00:00:00 2001 From: jose1711 Date: Mon, 14 May 2018 23:40:51 +0200 Subject: [PATCH] Do not use hyphen for living persons in hourglass graph --- gramps/plugins/graph/gvhourglass.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/gramps/plugins/graph/gvhourglass.py b/gramps/plugins/graph/gvhourglass.py index a3405b4ee..c15990043 100644 --- a/gramps/plugins/graph/gvhourglass.py +++ b/gramps/plugins/graph/gvhourglass.py @@ -226,12 +226,15 @@ class HourGlassReport(Report): else: death = "" + if death: + death = " – %s" % death + if self.includeid == 0: # no ID - label = "%s \\n(%s – %s)" % (name, birth, death) + label = "%s \\n(%s%s)" % (name, birth, death) elif self.includeid == 1: # same line - label = "%s (%s)\\n(%s – %s)" % (name, p_id, birth, death) + label = "%s (%s)\\n(%s%s)" % (name, p_id, birth, death) elif self.includeid == 2: # own line - label = "%s \\n(%s – %s)\\n(%s)" % (name, birth, death, p_id) + label = "%s \\n(%s%s)\\n(%s)" % (name, birth, death, p_id) label = label.replace('"', '\\\"')