From 96dc27a4c04b23bdd80ee593a54c36c1ad441c84 Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Sat, 14 Jun 2003 04:57:20 +0000 Subject: [PATCH] * src/EditPerson.py (did_data_change): When checking name type, compare translated strings (otherwise they always differ). svn: r1734 --- gramps2/ChangeLog | 4 ++++ gramps2/src/EditPerson.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index 4d5dd40ea..a9092b841 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,3 +1,7 @@ +2003-06-13 Alex Roitman + * src/EditPerson.py (did_data_change): When checking name type, + compare translated strings (otherwise they always differ). + 2003-06-13 Don Allingham * src/EditPerson.py: Removed the conflict of using pmap for two seperate purposes - mapping places to iterators and places to keys. The place to diff --git a/gramps2/src/EditPerson.py b/gramps2/src/EditPerson.py index d000f234b..9374ac338 100644 --- a/gramps2/src/EditPerson.py +++ b/gramps2/src/EditPerson.py @@ -930,7 +930,7 @@ class EditPerson: else: if surname.upper() != name.getSurname().upper(): changed = 1 - if ntype != name.getType(): + if ntype != const.InverseNameTypesMap[name.getType()]: changed = 1 if given != name.getFirstName(): changed = 1