diff --git a/ChangeLog b/ChangeLog index 7b722867d..734bd83f6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2007-06-24 Brian Matherly + * src/docgen/ODFDoc.py (rotate_text, init): fix rotated text location and + remove background color to improve the fanchart display (#0001072) + 2007-06-24 Alex Roitman * src/GrampsDb/_GrampsBSDDB.py (load): Typo. * src/DbLoader.py (read_file): Fix error reporting. diff --git a/src/docgen/ODFDoc.py b/src/docgen/ODFDoc.py index c15472eff..0d712a768 100644 --- a/src/docgen/ODFDoc.py +++ b/src/docgen/ODFDoc.py @@ -210,6 +210,20 @@ class ODFDoc(BaseDoc.BaseDoc): self.cntnt.write('/>\n') self.cntnt.write('\n') + # Graphic style for items with a clear background + self.cntnt.write('\n') + self.cntnt.write('\t') + self.cntnt.write('\n') + for style_name in self.style_list.keys(): style = self.style_list[style_name] @@ -970,28 +984,25 @@ class ODFDoc(BaseDoc.BaseDoc): size = font.get_size() height = size*(len(text)) - oneline = (size/72.0)*2.54 width = 0 for line in text: width = max(width,FontScale.string_width(font,line)) - wcm = (width/72.0)*2.54*1.2 - hcm = (height/72.0)*2.54*1.2 + wcm = ReportUtils.pt2cm(width) + hcm = ReportUtils.pt2cm(height) - rangle = -((pi/180.0) * angle) + rangle = (pi/180.0) * angle self.cntnt.write(' ') + self.cntnt.write('>') self.cntnt.write('') self.cntnt.write(' ' % pname)