diff --git a/ChangeLog b/ChangeLog index 762b9c5e7..2475a0df8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2004-09-13 Tim Waugh + * src/plugins/Ancestors.py (event_info): Prevent constructions like + "died in before 1901" by playing safe if the mode is not exact. + 2004-09-11 Alex Roitman * src/ReadGedcom.py (parse_person_event): Use TYPE field as the description of the event, if the event already has a name. diff --git a/src/plugins/Ancestors.py b/src/plugins/Ancestors.py index 9a32cbc49..ef9ef29c5 100644 --- a/src/plugins/Ancestors.py +++ b/src/plugins/Ancestors.py @@ -34,6 +34,7 @@ import BaseDoc import RelLib import Errors import Plugins +import Calendar from QuestionDialog import ErrorDialog from gettext import gettext as _ @@ -441,7 +442,8 @@ class ComprehensiveAncestorsReport (Report.Report): if text: info += ' ' + text[0].lower() + text[1:] elif dateobj.get_valid (): - if dateobj.is_range (): + if (dateobj.isRange () or + dateobj.get_start_date ().getModeVal () != Calendar.EXACT): info += ' ' + dateobj.get_date () elif (dateobj.get_day_valid () and dateobj.get_month_valid () and