From a2a68c64f79433329f139476b48a10782b080253 Mon Sep 17 00:00:00 2001 From: kulath Date: Wed, 25 Mar 2015 18:29:01 +0000 Subject: [PATCH] Fix spurious generation of empty 'Alternative Name' in place.merge() with an empty name Bug discovered during testing of fix to 8233 (thanks, Enno for discovering the problem and the fix). --- gramps/gen/lib/place.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gramps/gen/lib/place.py b/gramps/gen/lib/place.py index 0dc98ada5..b3522a1b8 100644 --- a/gramps/gen/lib/place.py +++ b/gramps/gen/lib/place.py @@ -571,7 +571,7 @@ class Place(CitationBase, NoteBase, MediaBase, UrlBase, PrimaryObject): :param acquisition: instance to merge :type acquisition: :class:'~.place.Place """ - if acquisition.name not in self.alt_names: + if acquisition.name and (acquisition.name not in self.alt_names): self.alt_names.append(acquisition.name) for addendum in acquisition.alt_names: