diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index a1a068759..84e749686 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,4 +1,5 @@ 2006-08-23 Alex Roitman + * src/plugins/ChangeTypes.py (run_tool): Compare English strings. * src/Editors/_EditPerson.py (_image_callback): Take three arguments; correctly call load_photo(); rebuild gallery. (load_photo): Name path variable as such, for clarity. diff --git a/gramps2/src/plugins/ChangeTypes.py b/gramps2/src/plugins/ChangeTypes.py index 499419b0d..4cab5bf5e 100644 --- a/gramps2/src/plugins/ChangeTypes.py +++ b/gramps2/src/plugins/ChangeTypes.py @@ -126,7 +126,7 @@ class ChangeTypes(Tool.BatchTool, ManagedWindow.ManagedWindow): if not event_ref.ref: continue event = self.db.get_event_from_handle(event_ref.ref) - if str(event.get_type()) == fromtype: + if event.get_type().xml_str() == fromtype: event.set_type(totype) modified = modified + 1 self.db.commit_event(event,self.trans)