* src/RelLib.py (SourceNote.replace_source_references,
MediaBase.replace_media_references,): Fix problem with replacing multiple occurrences. svn: r4870
This commit is contained in:
parent
dfd0aea13c
commit
6cc7bd3aac
@ -5,6 +5,9 @@
|
||||
* src/Relationship.py (is_spouse): Use context.
|
||||
* src/get_strings: Add "__" to default keywords.
|
||||
* src/po/template.po: Update for 2.0.4.
|
||||
* src/RelLib.py (SourceNote.replace_source_references,
|
||||
MediaBase.replace_media_references,): Fix problem with replacing
|
||||
multiple occurrences.
|
||||
|
||||
2005-06-23 Julio Sanchez <jsanchez@users.sourceforge.net>
|
||||
* src/WriteGedcom.py: Fix family source references, fix spurious
|
||||
|
@ -528,7 +528,7 @@ class SourceNote(BaseObject,NoteBase):
|
||||
for ix_replace in xrange(n_replace):
|
||||
ix = refs_list.index(old_handle)
|
||||
self.source_list[ix].ref = new_handle
|
||||
refs_list.pop(ix)
|
||||
refs_list[ix] = new_handle
|
||||
|
||||
for item in self.get_sourcref_child_list():
|
||||
item.replace_source_references(old_handle,new_handle)
|
||||
@ -628,7 +628,7 @@ class MediaBase:
|
||||
for ix_replace in xrange(n_replace):
|
||||
ix = refs_list.index(old_handle)
|
||||
self.media_list[ix].ref = new_handle
|
||||
refs_list.pop(ix)
|
||||
refs_list[ix] = new_handle
|
||||
|
||||
class DateBase:
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user