From 16c8e61944c96badc97417e46002b3e355093f8c Mon Sep 17 00:00:00 2001 From: Paul Culley Date: Wed, 23 Oct 2019 18:07:52 -0500 Subject: [PATCH] Fix Preferences/Genealogical Symbols when only one font is present (#930) that passes If user has only a single font available that passes check for the Genealogical Symbols being all present, the original code crashed. Apparently never tested... #598 Fixes #11395 --- gramps/gui/configure.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gramps/gui/configure.py b/gramps/gui/configure.py index a37f01571..b6c00f875 100644 --- a/gramps/gui/configure.py +++ b/gramps/gui/configure.py @@ -2093,9 +2093,9 @@ class GrampsPreferences(ConfigureDialog): self.all_avail_fonts, callback=self.utf8_update_font, valueactive=True, setactive=active_val) if len(available_fonts) == 1: - single_font = self.all_avail_fonts[choosefont.get_active()][1] + single_font = self.all_avail_fonts[choosefont.get_active()][0] config.set('utf8.selected-font', - self.all_avail_fonts[single_font]) + self.all_avail_fonts[single_font][1]) self.utf8_show_example() symbols = Symbols() all_sbls = symbols.get_death_symbols()