Backed out a change I made in parameters in commit 19862

svn: r20017
This commit is contained in:
Craig J. Anderson 2012-07-17 01:30:10 +00:00
parent 5efff27bf4
commit 76e1edbd82
2 changed files with 4 additions and 6 deletions

View File

@ -339,8 +339,7 @@ class FanChart(Report):
if self.map[index]:
if (generation == 0) and self.circle == FULL_CIRCLE:
yc = y
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)
text_angle += delta
@ -369,12 +368,11 @@ class FanChart(Report):
start_angle, end_angle, rad1)
text_angle += delta
if self.map[index]:
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)
else:
self.doc.rotate_text(text_style, txt,
self.doc.rotate_text(text_style, self.text[index],
xc, yc, text_angle)
#------------------------------------------------------------------------

View File

@ -1614,7 +1614,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)
self.__markup('\n'.join(text)), x, y, angle)
self._active_element.add_child(new_text)
# paginating and drawing interface