From 23f08ace03e36f29527bc2263fbd06ba5d7fc15f Mon Sep 17 00:00:00 2001 From: Nick Hall Date: Fri, 22 Mar 2024 13:58:59 +0000 Subject: [PATCH] Fix the Tag.is_empty() method The `Tag.is_empty()` method was returning the inverse of the expected value. Fixes #12579. --- gramps/gen/lib/tag.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gramps/gen/lib/tag.py b/gramps/gen/lib/tag.py index c8b937130a1..d53f91122a8 100644 --- a/gramps/gen/lib/tag.py +++ b/gramps/gen/lib/tag.py @@ -133,7 +133,7 @@ def is_empty(self): :returns: True if the Tag is empty :rtype: bool """ - return self.__name != "" + return not self.__name def are_equal(self, other): """