From e8918de46701adc5de27b59eb755fbc14b2c43fb Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Mon, 12 Jan 2004 18:56:02 +0000 Subject: [PATCH] * src/PlaceView.py (on_delete_clicked): Use list's copy to avoid modifying the real EventList (closes # 875332). * src/paper.xml: Remove from CVS (superseded by papersize.xml). svn: r2630 --- ChangeLog | 5 +++++ src/PlaceView.py | 4 ++-- src/paper.xml | 13 ------------- 3 files changed, 7 insertions(+), 15 deletions(-) delete mode 100644 src/paper.xml diff --git a/ChangeLog b/ChangeLog index bc97a7031..a68f50e53 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-01-12 Alex Roitman + * src/PlaceView.py (on_delete_clicked): Use list's copy to avoid + modifying the real EventList (closes # 875332). + * src/paper.xml: Remove from CVS (superseded by papersize.xml). + 2004-01-11 Don Allingham * src/Makefile.am: export papersize.xml * src/RelLib.py: Don't call setAncestor if default person is None diff --git a/src/PlaceView.py b/src/PlaceView.py index 06632b508..4efbf8671 100644 --- a/src/PlaceView.py +++ b/src/PlaceView.py @@ -208,7 +208,7 @@ class PlaceView: used = 0 for key in self.db.getPersonKeys(): p = self.db.getPerson(key) - event_list = [p.getBirth(), p.getDeath()] + p.getEventList() + event_list = [p.getBirth(), p.getDeath()] + p.getEventList()[:] if p.getLdsBaptism(): event_list.append(p.getLdsBaptism()) if p.getLdsEndowment(): @@ -220,7 +220,7 @@ class PlaceView: used = 1 for f in self.db.getFamilyMap().values(): - event_list = f.getEventList() + event_list = f.getEventList()[:] if f.getLdsSeal(): event_list.append(f.getLdsSeal()) for event in event_list: diff --git a/src/paper.xml b/src/paper.xml deleted file mode 100644 index bc1cd2f45..000000000 --- a/src/paper.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - -