diff --git a/ChangeLog b/ChangeLog index 588f5504b..e8fb463b5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -4,6 +4,8 @@ * src/ImageSelect.py (GlobalMediaProperties.display_refs): Add references for personal and family events. + * src/WriteGedcom.py (write_source_ref): Use source, not handle. + 2005-01-10 Alex Roitman * src/plugins/StatisticsChart.py: Misc fixes. * src/PluginMgr.py (reload_plugins): Remove function. diff --git a/src/WriteGedcom.py b/src/WriteGedcom.py index 899c3f747..24eae6b16 100644 --- a/src/WriteGedcom.py +++ b/src/WriteGedcom.py @@ -1171,11 +1171,12 @@ class GedcomWriter: # Not using CONC and CONT because GeneWeb does not support these. # TEXT and NOTE will be ignored by GeneWeb, but we can't # output paragaphs in SOUR without CONT. - sbase = ref.get_base_handle() - if sbase and sbase.get_title(): - txt = sbase.get_title() + ". " - else: - txt = "" + txt = "" + sbase_handle = ref.get_base_handle() + if sbase_handle: + sbase = self.db.get_source_from_handle(sbase_handle) + if sbase and sbase.get_title(): + txt = sbase.get_title() + ". " if ref.get_page(): txt = txt + ref.get_page() + ". " self.g.write("%d SOUR %s" % (level,self.cnvtxt(txt)))