Fix GrampsType for comparison bug with empty string as one value

Fixes #11563
This commit is contained in:
prculley 2020-02-08 09:38:00 -06:00 committed by Paul Culley
parent 58335cfee2
commit e34b98033e

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)