From 805e07d09aaddb2c4381808745e14b2ee5605152 Mon Sep 17 00:00:00 2001 From: Ed Bennett Date: Sat, 18 May 2019 00:31:06 +0100 Subject: [PATCH] Allow an option to not use hexagons for those of unknown gender Fixes #11112 --- gramps/plugins/graph/gvrelgraph.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/gramps/plugins/graph/gvrelgraph.py b/gramps/plugins/graph/gvrelgraph.py index ffc626dcc..97dda00d7 100644 --- a/gramps/plugins/graph/gvrelgraph.py +++ b/gramps/plugins/graph/gvrelgraph.py @@ -115,6 +115,7 @@ class RelGraphReport(Report): color_families - Colour to apply to families dashed - Whether to use dashed lines for non-birth relationships use_roundedcorners - Whether to use rounded corners for females + use_hexagons - Whether to use hexagons for individuals of unknown gender name_format - Preferred format to display names incl_private - Whether to include private data event_choice - Whether to include dates and/or places @@ -142,6 +143,7 @@ class RelGraphReport(Report): self.includeimg = get_value('includeImages') self.imgpos = get_value('imageOnTheSide') self.use_roundedcorners = get_value('useroundedcorners') + self.use_hexagons = get_value('usehexagons') self.adoptionsdashed = get_value('dashed') self.show_families = get_value('showfamily') self.show_family_leaves = get_value('show_family_leaves') @@ -543,7 +545,7 @@ class RelGraphReport(Report): if gender == person.FEMALE and self.use_roundedcorners: style = "rounded" - elif gender == person.UNKNOWN: + elif gender == person.UNKNOWN and self.use_hexagons: shape = "hexagon" if person == self.center_person and self.increlname: @@ -827,6 +829,12 @@ class RelGraphOptions(MenuReportOptions): "between women and men.")) add_option("useroundedcorners", roundedcorners) + # see bug report #11112 + hexagons = BooleanOption(_("Use hexagons"), False) + hexagons.set_help(_("Use hexagons to differentiate " + "those of unknown gender.")) + add_option("usehexagons", hexagons) + stdoptions.add_gramps_id_option(menu, category_name, ownline=True) ################################