6113: Cannot print a quadran Fan Chart type
svn: r20668
This commit is contained in:
parent
4e8437bae4
commit
884d3d8eb2
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user