Fix of issue 3253 for Family Lines report. Zeros are not shown now.
svn: r13295
This commit is contained in:
parent
b66e7d1af1
commit
84cb3ca12e
@ -791,7 +791,7 @@ class FamilyLinesReport(Report):
|
|||||||
if (bth_event.private and self._incprivate) or \
|
if (bth_event.private and self._incprivate) or \
|
||||||
not bth_event.private:
|
not bth_event.private:
|
||||||
date = bth_event.get_date_object()
|
date = bth_event.get_date_object()
|
||||||
if self._just_years:
|
if self._just_years and date.get_year_valid():
|
||||||
birthStr = '%i' % date.get_year()
|
birthStr = '%i' % date.get_year()
|
||||||
else:
|
else:
|
||||||
birthStr = _dd.display(date)
|
birthStr = _dd.display(date)
|
||||||
@ -817,7 +817,7 @@ class FamilyLinesReport(Report):
|
|||||||
if (dth_event.private and self._incprivate) or \
|
if (dth_event.private and self._incprivate) or \
|
||||||
not dth_event.private:
|
not dth_event.private:
|
||||||
date = dth_event.get_date_object()
|
date = dth_event.get_date_object()
|
||||||
if self._just_years:
|
if self._just_years and date.get_year_valid():
|
||||||
deathStr = '%i' % date.get_year()
|
deathStr = '%i' % date.get_year()
|
||||||
else:
|
else:
|
||||||
deathStr = _dd.display(date)
|
deathStr = _dd.display(date)
|
||||||
@ -940,7 +940,7 @@ class FamilyLinesReport(Report):
|
|||||||
if (event.private and self._incprivate) or not event.private:
|
if (event.private and self._incprivate) or not event.private:
|
||||||
if self._incdates:
|
if self._incdates:
|
||||||
date = event.get_date_object()
|
date = event.get_date_object()
|
||||||
if self._just_years:
|
if self._just_years and date.get_year_valid():
|
||||||
weddingDate = '%i' % date.get_year()
|
weddingDate = '%i' % date.get_year()
|
||||||
else:
|
else:
|
||||||
weddingDate = _dd.display(date)
|
weddingDate = _dd.display(date)
|
||||||
|
Loading…
Reference in New Issue
Block a user