* src/plugins/FamilyGroup.py (parse_user_options): Only select

spouse if there is any.


svn: r4777
This commit is contained in:
Alex Roitman 2005-06-03 20:23:44 +00:00
parent 7d8f3c7dfb
commit e4a677f57d
2 changed files with 4 additions and 1 deletions

View File

@ -18,6 +18,8 @@
* src/EditPlace.py, src/EditSource.py: Detect new objects by
handle.
* src/const.py.in (save_frel): Return English strings.
* src/plugins/FamilyGroup.py (parse_user_options): Only select
spouse if there is any.
2005-06-03 Jens Arvidsson <jya@sverige.nu>
* src/po/sv.po: Minor fixes found via pochkpyvar.pl.

View File

@ -486,7 +486,8 @@ class FamilyGroupOptions(ReportOptions.ReportOptions):
"""
spouses = self.get_spouses(dialog.db,dialog.person)
spouse_index = self.spouse_menu.get_active()
self.options_dict['spouse_id'] = spouses[spouse_index][0]
if spouses:
self.options_dict['spouse_id'] = spouses[spouse_index][0]
def make_default_style(self,default_style):
"""Make default output style for the Family Group Report."""