6113: Cannot print a quadran Fan Chart type

svn: r20668
This commit is contained in:
Benny Malengier 2012-11-17 11:07:39 +00:00
parent 4e8437bae4
commit 884d3d8eb2
2 changed files with 4 additions and 4 deletions

View File

@ -233,9 +233,9 @@ class FanChartDescView(fanchartdesc.FanChartDescGrampsGUI, NavigationView):
widthpx = 2 * self.fan.halfdist() widthpx = 2 * self.fan.halfdist()
heightpx = widthpx heightpx = widthpx
if self.form == fanchart.FORM_HALFCIRCLE: 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: 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 widthpx = heightpx
prt = CairoPrintSave(widthpx, heightpx, self.fan.on_draw, self.uistate.window) prt = CairoPrintSave(widthpx, heightpx, self.fan.on_draw, self.uistate.window)

View File

@ -231,9 +231,9 @@ class FanChartView(fanchart.FanChartGrampsGUI, NavigationView):
widthpx = 2 * self.fan.halfdist() widthpx = 2 * self.fan.halfdist()
heightpx = widthpx heightpx = widthpx
if self.form == fanchart.FORM_HALFCIRCLE: 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: 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 widthpx = heightpx
prt = CairoPrintSave(widthpx, heightpx, self.fan.on_draw, self.uistate.window) prt = CairoPrintSave(widthpx, heightpx, self.fan.on_draw, self.uistate.window)