From 84cb3ca12e88d1dfc7c9948d5268ff1ab29d5ee4 Mon Sep 17 00:00:00 2001 From: Peter Landgren Date: Sat, 3 Oct 2009 13:55:55 +0000 Subject: [PATCH] Fix of issue 3253 for Family Lines report. Zeros are not shown now. svn: r13295 --- src/plugins/graph/GVFamilyLines.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plugins/graph/GVFamilyLines.py b/src/plugins/graph/GVFamilyLines.py index 642e82e85..8a99f6279 100644 --- a/src/plugins/graph/GVFamilyLines.py +++ b/src/plugins/graph/GVFamilyLines.py @@ -791,7 +791,7 @@ class FamilyLinesReport(Report): if (bth_event.private and self._incprivate) or \ not bth_event.private: date = bth_event.get_date_object() - if self._just_years: + if self._just_years and date.get_year_valid(): birthStr = '%i' % date.get_year() else: birthStr = _dd.display(date) @@ -817,7 +817,7 @@ class FamilyLinesReport(Report): if (dth_event.private and self._incprivate) or \ not dth_event.private: date = dth_event.get_date_object() - if self._just_years: + if self._just_years and date.get_year_valid(): deathStr = '%i' % date.get_year() else: deathStr = _dd.display(date) @@ -940,7 +940,7 @@ class FamilyLinesReport(Report): if (event.private and self._incprivate) or not event.private: if self._incdates: date = event.get_date_object() - if self._just_years: + if self._just_years and date.get_year_valid(): weddingDate = '%i' % date.get_year() else: weddingDate = _dd.display(date)