From b18676aaf405538564633e848476c97aacb51db1 Mon Sep 17 00:00:00 2001 From: prculley Date: Wed, 31 May 2017 07:53:05 -0500 Subject: [PATCH] Text-only dates are sometimes not exported in XML Fixes #10062. --- gramps/gen/lib/date.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gramps/gen/lib/date.py b/gramps/gen/lib/date.py index d7e9e9892..5f4a63369 100644 --- a/gramps/gen/lib/date.py +++ b/gramps/gen/lib/date.py @@ -1765,9 +1765,9 @@ class Date: """ Return True if the date contains no information (empty text). """ - return (self.modifier == Date.MOD_TEXTONLY and not self.text) or \ - (self.get_start_date() == Date.EMPTY - and self.get_stop_date() == Date.EMPTY) + return not((self.modifier == Date.MOD_TEXTONLY and self.text) + or self.get_start_date() != Date.EMPTY + or self.get_stop_date() != Date.EMPTY) def is_compound(self): """