backed out a parameter passing change I made in commit 19862

svn: r20018
This commit is contained in:
Craig J. Anderson 2012-07-17 01:34:54 +00:00
parent 83058c7e7b
commit 6d39969056
2 changed files with 4 additions and 6 deletions

View File

@ -345,8 +345,7 @@ class FanChart(Report):
yc = y
person = self.database.get_person_from_handle(self.map[index])
mark = ReportUtils.get_person_mark(self.database, person)
txt = '\n'.join(self.text[index])
self.doc.rotate_text(text_style, txt,
self.doc.rotate_text(text_style, self.text[index],
xc, yc, text_angle, mark)
text_angle += delta
@ -377,12 +376,11 @@ class FanChart(Report):
if self.map[index]:
person = self.database.get_person_from_handle(self.map[index])
mark = ReportUtils.get_person_mark(self.database, person)
txt = '\n'.join(self.text[index])
if self.radial == RADIAL_UPRIGHT and (start_angle >= 90) and (start_angle < 270):
self.doc.rotate_text(text_style, txt,
self.doc.rotate_text(text_style, self.text[index],
xc, yc, text_angle + 180, mark)
else:
self.doc.rotate_text(text_style, txt,
self.doc.rotate_text(text_style, self.text[index],
xc, yc, text_angle, mark)
#------------------------------------------------------------------------

View File

@ -1628,7 +1628,7 @@ links (like ODF) and write PDF from that format.
paragraph_style.set_alignment(PARA_ALIGN_CENTER)
new_text = GtkDocText(paragraph_style, 'center',
self.__markup(text), x, y, angle, mark)
self.__markup('\n'.join(text)), x, y, angle, mark)
self._active_element.add_child(new_text)
# paginating and drawing interface