diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index 5e1436dd4..957f414d2 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,3 +1,7 @@ +2005-07-26 Martin Hawlisch + * src/NavWebPage.py: Catch missing header/footer notes; Add Surname + page that is sorted by the number of persons. + 2005-07-25 Alexander Roitman * src/gramps.glade (editPerson,marriageEditor): Use Title for the source titles. diff --git a/gramps2/src/plugins/NavWebPage.py b/gramps2/src/plugins/NavWebPage.py index de516155a..592769b8e 100644 --- a/gramps2/src/plugins/NavWebPage.py +++ b/gramps2/src/plugins/NavWebPage.py @@ -213,9 +213,10 @@ class BasePage: of.write('



\n') if self.footer != u"": obj = db.get_object_from_handle(self.footer) - of.write('\n') + if obj: + of.write('\n') of.write('\n') of.write('\n') @@ -247,9 +248,10 @@ class BasePage: of.write('\n') if self.header != u"": obj = db.get_object_from_handle(self.header) - of.write('
\n') - of.write(obj.get_note()) - of.write('
\n') + if obj: + of.write('
\n') + of.write(obj.get_note()) + of.write('
\n') of.write('