Fix of issue 3253 for Family Lines report. Zeros are not shown now.

svn: r13295
This commit is contained in:
Peter Landgren 2009-10-03 13:55:55 +00:00
parent b66e7d1af1
commit 84cb3ca12e

View File

@ -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)