diff --git a/gramps/plugins/view/fanchartdescview.py b/gramps/plugins/view/fanchartdescview.py index 70f9f73db..27a813bf7 100644 --- a/gramps/plugins/view/fanchartdescview.py +++ b/gramps/plugins/view/fanchartdescview.py @@ -233,9 +233,9 @@ class FanChartDescView(fanchartdesc.FanChartDescGrampsGUI, NavigationView): widthpx = 2 * self.fan.halfdist() heightpx = widthpx if self.form == fanchart.FORM_HALFCIRCLE: - heightpx = heightpx / 2 + fanchart.CENTER + fanchart.PAD_PX + heightpx = heightpx / 2 + self.fan.CENTER + fanchart.PAD_PX elif self.form == fanchart.FORM_QUADRANT: - heightpx = heightpx / 2 + fanchart.CENTER + fanchart.PAD_PX + heightpx = heightpx / 2 + self.fan.CENTER + fanchart.PAD_PX widthpx = heightpx prt = CairoPrintSave(widthpx, heightpx, self.fan.on_draw, self.uistate.window) diff --git a/gramps/plugins/view/fanchartview.py b/gramps/plugins/view/fanchartview.py index 063c88a68..373330de6 100644 --- a/gramps/plugins/view/fanchartview.py +++ b/gramps/plugins/view/fanchartview.py @@ -231,9 +231,9 @@ class FanChartView(fanchart.FanChartGrampsGUI, NavigationView): widthpx = 2 * self.fan.halfdist() heightpx = widthpx if self.form == fanchart.FORM_HALFCIRCLE: - heightpx = heightpx / 2 + fanchart.CENTER + fanchart.PAD_PX + heightpx = heightpx / 2 + self.fan.CENTER + fanchart.PAD_PX elif self.form == fanchart.FORM_QUADRANT: - heightpx = heightpx / 2 + fanchart.CENTER + fanchart.PAD_PX + heightpx = heightpx / 2 + self.fan.CENTER + fanchart.PAD_PX widthpx = heightpx prt = CairoPrintSave(widthpx, heightpx, self.fan.on_draw, self.uistate.window)