Fix GrampsType for comparison bug with empty string as one value

Fixes #11563
This commit is contained in:
prculley authored and Paul Culley committed 2020-05-15 14:47:06 -05:00
1 parent 58335cfee2
commit e34b98033e
1 file changed
+4 -2
+4 -2
View File
@@ -288,10 +288,12 @@ class GrampsType(object, metaclass=GrampsTypeMeta):
else:
return self.__value == value[0]
else:
if value.value == self._CUSTOM:
if value.value == self._CUSTOM and self.__value == self._CUSTOM:
return self.__string == value.string
else:
elif value.value != self._CUSTOM and self.__value != self._CUSTOM:
return self.__value == value.value
else:
return False
def __ne__(self, value):
return not self.__eq__(value)